From 43284e90606a7febb8b6178285dd3d90c2b9a65e Mon Sep 17 00:00:00 2001 From: Dirk McCormick Date: Wed, 22 Apr 2020 17:43:23 -0400 Subject: [PATCH] fix: change timing for DONT_HAVE timeouts to be more conservative --- internal/messagequeue/donthavetimeoutmgr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/messagequeue/donthavetimeoutmgr.go b/internal/messagequeue/donthavetimeoutmgr.go index e5ce0b2..e53b232 100644 --- a/internal/messagequeue/donthavetimeoutmgr.go +++ b/internal/messagequeue/donthavetimeoutmgr.go @@ -19,12 +19,12 @@ const ( // maxExpectedWantProcessTime is the maximum amount of time we expect a // peer takes to process a want and initiate sending a response to us - maxExpectedWantProcessTime = 200 * time.Millisecond + maxExpectedWantProcessTime = 2 * time.Second // latencyMultiplier is multiplied by the average ping time to // get an upper bound on how long we expect to wait for a peer's response // to arrive - latencyMultiplier = 2 + latencyMultiplier = 3 ) // PeerConnection is a connection to a peer that can be pinged, and the -- GitLab