We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b9442c commit 6388487Copy full SHA for 6388487
core/node/libp2p/rcmgr_defaults.go
@@ -129,7 +129,9 @@ func createDefaultLimitConfig(cfg config.SwarmConfig) (limitConfig rcmgr.Concret
129
}
130
131
// Scale System.StreamsInbound as well, but use the existing ratio of StreamsInbound to ConnsInbound
132
- partialLimits.System.StreamsInbound = rcmgr.LimitVal(maxInboundConns * int64(partialLimits.System.StreamsInbound) / int64(partialLimits.System.ConnsInbound))
+ if partialLimits.System.StreamsInbound != rcmgr.Unlimited {
133
+ partialLimits.System.StreamsInbound = rcmgr.LimitVal(maxInboundConns * int64(partialLimits.System.StreamsInbound) / int64(partialLimits.System.ConnsInbound))
134
+ }
135
partialLimits.System.ConnsInbound = rcmgr.LimitVal(maxInboundConns)
136
137
0 commit comments