From 5b46c6654d3b4469e6bebd83ec01c1de80999479 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Thu, 14 Mar 2019 10:51:23 +0100 Subject: [PATCH] crazy timeouts --- swarm/network/fetcher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swarm/network/fetcher.go b/swarm/network/fetcher.go index 31c8d72a17..d5f7f7e1e9 100644 --- a/swarm/network/fetcher.go +++ b/swarm/network/fetcher.go @@ -30,7 +30,7 @@ import ( ) const ( - defaultSearchTimeout = 3 * time.Second + defaultSearchTimeout = 8 * time.Second // maximum number of forwarded requests (hops), to make sure requests are not // forwarded forever in peer loops maxHopCount uint8 = 20 @@ -38,7 +38,7 @@ const ( // Time to consider peer to be skipped. // Also used in stream delivery. -var RequestTimeout = 10 * time.Second +var RequestTimeout = 26 * time.Second type RequestFunc func(context.Context, *Request) (*enode.ID, chan struct{}, error)