Skip to content

Commit 0b7bfc7

Browse files
committed
Synchronize the concurrent outbound dials with limits
1 parent 8e45102 commit 0b7bfc7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

p2p/host/resource-manager/limit_defaults.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,8 @@ var DefaultLimits = ScalingLimitConfig{
492492
},
493493

494494
PeerBaseLimit: BaseLimit{
495-
ConnsInbound: 4,
496-
ConnsOutbound: 8,
495+
ConnsInbound: 6,
496+
ConnsOutbound: 6,
497497
Conns: 8,
498498
StreamsInbound: 256,
499499
StreamsOutbound: 512,

p2p/net/swarm/swarm_dial.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const ConcurrentFdDials = 160
7373

7474
// DefaultPerPeerRateLimit is the number of concurrent outbound dials to make
7575
// per peer
76-
var DefaultPerPeerRateLimit = 8
76+
var DefaultPerPeerRateLimit = 6
7777

7878
// dialbackoff is a struct used to avoid over-dialing the same, dead peers.
7979
// Whenever we totally time out on a peer (all three attempts), we add them

0 commit comments

Comments
 (0)