Commit 43284e90 authored by Dirk McCormick's avatar Dirk McCormick

fix: change timing for DONT_HAVE timeouts to be more conservative

parent f4b63eef
...@@ -19,12 +19,12 @@ const ( ...@@ -19,12 +19,12 @@ const (
// maxExpectedWantProcessTime is the maximum amount of time we expect a // maxExpectedWantProcessTime is the maximum amount of time we expect a
// peer takes to process a want and initiate sending a response to us // 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 // 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 // get an upper bound on how long we expect to wait for a peer's response
// to arrive // to arrive
latencyMultiplier = 2 latencyMultiplier = 3
) )
// PeerConnection is a connection to a peer that can be pinged, and the // PeerConnection is a connection to a peer that can be pinged, and the
......
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