Skip to content

Commit

Permalink
p2p: decrease maximum message size for devp2p to 1kB
Browse files Browse the repository at this point in the history
The previous limit was 10MB which is unacceptable for all kinds
of reasons, the most important one being that we don't want to
allow the remote side to make us allocate 10MB at handshake time.
  • Loading branch information
fjl committed May 24, 2015
1 parent 7b93341 commit 64564da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
const (
baseProtocolVersion = 4
baseProtocolLength = uint64(16)
baseProtocolMaxMsgSize = 10 * 1024 * 1024
baseProtocolMaxMsgSize = 2 * 1024

pingInterval = 15 * time.Second
)
Expand Down

0 comments on commit 64564da

Please sign in to comment.