Skip to content

Commit

Permalink
Merge pull request ipfs/go-bitswap#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

This commit was moved from ipfs/go-bitswap@29b4de9
  • Loading branch information
Stebalien authored Apr 23, 2020
2 parents 5e4dbaf + 780e750 commit 8a31039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bitswap/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 8a31039

Please sign in to comment.