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

* p2p: retry failed connections slightly more aggressively

* fix dial interval test
This commit is contained in:
Sam Kleinman
2022-02-25 13:05:29 -05:00
committed by GitHub
parent af60a9c385
commit 89dbebd1c5
3 changed files with 15 additions and 13 deletions

View File

@@ -332,10 +332,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,
}