Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-bitswap
Commits
43284e90
Commit
43284e90
authored
Apr 22, 2020
by
Dirk McCormick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: change timing for DONT_HAVE timeouts to be more conservative
parent
f4b63eef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
internal/messagequeue/donthavetimeoutmgr.go
internal/messagequeue/donthavetimeoutmgr.go
+2
-2
No files found.
internal/messagequeue/donthavetimeoutmgr.go
View file @
43284e90
...
...
@@ -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
=
2
00
*
time
.
Millis
econd
maxExpectedWantProcessTime
=
2
*
time
.
S
econd
// 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment