diff options
author | Felix Lange <fjl@twurst.com> | 2015-05-18 07:14:35 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-05-25 07:17:14 +0800 |
commit | 64564da20b24f465abfa5bd95fc9deb1c32ec640 (patch) | |
tree | fcf19312087ad7173e08a683e3bf963a178901d6 /p2p/peer.go | |
parent | 7b933418362d62ddc9c72195b78e9987926aba3c (diff) | |
download | go-tangerine-64564da20b24f465abfa5bd95fc9deb1c32ec640.tar go-tangerine-64564da20b24f465abfa5bd95fc9deb1c32ec640.tar.gz go-tangerine-64564da20b24f465abfa5bd95fc9deb1c32ec640.tar.bz2 go-tangerine-64564da20b24f465abfa5bd95fc9deb1c32ec640.tar.lz go-tangerine-64564da20b24f465abfa5bd95fc9deb1c32ec640.tar.xz go-tangerine-64564da20b24f465abfa5bd95fc9deb1c32ec640.tar.zst go-tangerine-64564da20b24f465abfa5bd95fc9deb1c32ec640.zip |
p2p: decrease maximum message size for devp2p to 1kB
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.
Diffstat (limited to 'p2p/peer.go')
-rw-r--r-- | p2p/peer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/peer.go b/p2p/peer.go index 562fbc1b4..87a91d406 100644 --- a/p2p/peer.go +++ b/p2p/peer.go @@ -18,7 +18,7 @@ import ( const ( baseProtocolVersion = 4 baseProtocolLength = uint64(16) - baseProtocolMaxMsgSize = 10 * 1024 * 1024 + baseProtocolMaxMsgSize = 2 * 1024 pingInterval = 15 * time.Second ) |