p2p: retry failed connections slightly more aggressively (backport #8010) (#8012)

This commit is contained in:
mergify[bot]
2022-02-25 13:53:46 -05:00
committed by GitHub
parent a0321633b0
commit a281c0bbf1
3 changed files with 15 additions and 12 deletions
+3 -3
View File
@@ -461,10 +461,10 @@ func createPeerManager(
MaxConnected: maxConns,
MaxConnectedUpgrade: 4,
MaxPeers: 1000,
MinRetryTime: 100 * time.Millisecond,
MaxRetryTime: 8 * time.Hour,
MinRetryTime: 250 * time.Millisecond,
MaxRetryTime: 30 * time.Minute,
MaxRetryTimePersistent: 5 * time.Minute,
RetryTimeJitter: 3 * time.Second,
RetryTimeJitter: 5 * time.Second,
PrivatePeers: privatePeerIDs,
}