Skip to content

Commit 558bff4

Browse files
committed
eth/protocols/snap: lower the packet size to avoid overloading link
1 parent 6d7c956 commit 558bff4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎eth/protocols/snap/sync.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ var (
5252

5353
const (
5454
// maxRequestSize is the maximum number of bytes to request from a remote peer.
55-
maxRequestSize = 512 * 1024
55+
maxRequestSize = 128 * 1024
5656

5757
// maxStorageSetRequestCount is the maximum number of contracts to request the
5858
// storage of in a single query. If this number is too low, we're not filling
@@ -74,7 +74,7 @@ const (
7474
// a single query. If this number is too low, we're not filling responses fully
7575
// and waste round trip times. If it's too high, we're capping responses and
7676
// waste bandwidth.
77-
maxTrieRequestCount = 512
77+
maxTrieRequestCount = 256
7878
)
7979

8080
var (

0 commit comments

Comments
 (0)