Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #371 from ipfs/fix/dont-have-timing
Browse files Browse the repository at this point in the history
Change timing for DONT_HAVE timeouts to be more conservative
  • Loading branch information
Stebalien authored Apr 23, 2020
2 parents f4b63ee + 43284e9 commit 29b4de9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/messagequeue/donthavetimeoutmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29b4de9

Please sign in to comment.