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

Change timing for DONT_HAVE timeouts to be more conservative #371

Merged
merged 1 commit into from
Apr 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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