Skip to content

Commit 3c57ce5

Browse files
committed
play with turning off dont have simulation
1 parent a8e6636 commit 3c57ce5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: share/shwap/p2p/bitswap/bitswap.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const (
2828
// selected one is slow or not responding.
2929
// Dynamic timeout, in our case, can be treated as optimization allowing to move on a next peer faster.
3030
// See simulateDontHaveConfig for more details.
31-
simulateDontHaves = true
31+
simulateDontHaves = false
3232
// broadcastDelay defines the initial delay before Bitswap client starts aggressive
3333
// broadcasting of live WANTs to all the peers. We offset this for longer than the default to minimize
3434
// unnecessary broadcasting as in most cases we already have peers connected with needed data on
@@ -81,7 +81,7 @@ const (
8181
// This relies on latency to determine when to simulate a DONT_HAVE from a peer.
8282
var simulateDontHaveConfig = &client.DontHaveTimeoutConfig{
8383
// MaxTimeout is the limit cutoff time for the dynamic timeout estimation.
84-
MaxTimeout: 30 * time.Second,
84+
MaxTimeout: 120 * time.Second,
8585
// MinTimeout is the minimum timeout for the dynamic timeout estimation.
8686
MinTimeout: 1 * time.Second,
8787
// MessageLatencyMultiplier is the multiplier for the message latency to account for errors

0 commit comments

Comments
 (0)