Unverified Commit abb6cfae authored by Péter Szilágyi's avatar Péter Szilágyi Committed by GitHub

Merge pull request #22761 from karalabe/snap-small-packets

eth/protocols/snap: lower the packet size to avoid overloading link
parents e4270cac 558bff40
...@@ -52,7 +52,7 @@ var ( ...@@ -52,7 +52,7 @@ var (
const ( const (
// maxRequestSize is the maximum number of bytes to request from a remote peer. // maxRequestSize is the maximum number of bytes to request from a remote peer.
maxRequestSize = 512 * 1024 maxRequestSize = 128 * 1024
// maxStorageSetRequestCount is the maximum number of contracts to request the // maxStorageSetRequestCount is the maximum number of contracts to request the
// storage of in a single query. If this number is too low, we're not filling // storage of in a single query. If this number is too low, we're not filling
...@@ -74,7 +74,7 @@ const ( ...@@ -74,7 +74,7 @@ const (
// a single query. If this number is too low, we're not filling responses fully // a single query. If this number is too low, we're not filling responses fully
// and waste round trip times. If it's too high, we're capping responses and // and waste round trip times. If it's too high, we're capping responses and
// waste bandwidth. // waste bandwidth.
maxTrieRequestCount = 512 maxTrieRequestCount = 256
) )
var ( var (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment