You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config.go
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -238,8 +238,9 @@ const (
238
238
// defaultHTTPHeaderTimeout is the default timeout for HTTP requests.
239
239
DefaultHTTPHeaderTimeout=5*time.Second
240
240
241
-
// DefaultNumRestrictedSlots is the default number of restricted slots
242
-
// we'll allocate in the server.
241
+
// DefaultNumRestrictedSlots is the default max number of incoming
242
+
// connections allowed in the server. Outbound connections are not
243
+
// restricted.
243
244
DefaultNumRestrictedSlots=100
244
245
245
246
// BitcoinChainName is a string that represents the Bitcoin blockchain.
@@ -529,9 +530,9 @@ type Config struct {
529
530
// before timing out reading the headers of an HTTP request.
530
531
HTTPHeaderTimeout time.Duration`long:"http-header-timeout" description:"The maximum duration that the server will wait before timing out reading the headers of an HTTP request."`
531
532
532
-
// NumRestrictedSlots is the number of restricted slots we'll allocate
533
-
// in the server.
534
-
NumRestrictedSlotsuint64`long:"num-restricted-slots" description:"The number of restricted slots we'll allocate in the server."`
533
+
// NumRestrictedSlots is the max number of incoming connections allowed
534
+
// in the server. Outbound connections are not restricted.
535
+
NumRestrictedSlotsuint64`long:"num-restricted-slots" description:"The max number of incoming connections allowed in the server. Outbound connections are not restricted."`
535
536
536
537
// NoDisconnectOnPongFailure controls if we'll disconnect if a peer
0 commit comments