From fc8ff6d993439cfd4d3aea07b39eca4fc4cda412 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Thu, 14 Mar 2019 14:50:20 +0100 Subject: [PATCH] lower 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 d5f7f7e1e9..7fb967f7f3 100644 --- a/swarm/network/fetcher.go +++ b/swarm/network/fetcher.go @@ -30,7 +30,7 @@ import ( ) const ( - defaultSearchTimeout = 8 * time.Second + defaultSearchTimeout = 4 * 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 = 26 * time.Second +var RequestTimeout = 15 * time.Second type RequestFunc func(context.Context, *Request) (*enode.ID, chan struct{}, error)