eth/protocols/snap: try to prevent requests timing out

This commit is contained in:
Martin Holst Swende
2021-03-29 14:17:35 +02:00
parent 76700ac892
commit 7644795950
2 changed files with 10 additions and 5 deletions

View File

@ -85,7 +85,7 @@ const (
var (
// requestTimeout is the maximum time a peer is allowed to spend on serving
// a single network request.
requestTimeout = 10 * time.Second // TODO(karalabe): Make it dynamic ala fast-sync?
requestTimeout = 15 * time.Second // TODO(karalabe): Make it dynamic ala fast-sync?
)
// ErrCancelled is returned from snap syncing if the operation was prematurely