config: update docs for num-restricted-slots
This commit is contained in:
2 files changed
+8
-6
No files matched your search
@@ -238,8 +238,9 @@ const (
|
|||||||
// defaultHTTPHeaderTimeout is the default timeout for HTTP requests.
|
// defaultHTTPHeaderTimeout is the default timeout for HTTP requests.
|
||||||
DefaultHTTPHeaderTimeout = 5 * time.Second
|
DefaultHTTPHeaderTimeout = 5 * time.Second
|
||||||
|
|
||||||
// DefaultNumRestrictedSlots is the default number of restricted slots
|
// DefaultNumRestrictedSlots is the default max number of incoming
|
||||||
// we'll allocate in the server.
|
// connections allowed in the server. Outbound connections are not
|
||||||
|
// restricted.
|
||||||
DefaultNumRestrictedSlots = 100
|
DefaultNumRestrictedSlots = 100
|
||||||
|
|
||||||
// BitcoinChainName is a string that represents the Bitcoin blockchain.
|
// BitcoinChainName is a string that represents the Bitcoin blockchain.
|
||||||
@@ -529,9 +530,9 @@ type Config struct {
|
|||||||
// before timing out reading the headers of an HTTP request.
|
// before timing out reading the headers of an HTTP request.
|
||||||
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."`
|
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."`
|
||||||
|
|
||||||
// NumRestrictedSlots is the number of restricted slots we'll allocate
|
// NumRestrictedSlots is the max number of incoming connections allowed
|
||||||
// in the server.
|
// in the server. Outbound connections are not restricted.
|
||||||
NumRestrictedSlots uint64 `long:"num-restricted-slots" description:"The number of restricted slots we'll allocate in the server."`
|
NumRestrictedSlots uint64 `long:"num-restricted-slots" description:"The max number of incoming connections allowed in the server. Outbound connections are not restricted."`
|
||||||
|
|
||||||
// NoDisconnectOnPongFailure controls if we'll disconnect if a peer
|
// NoDisconnectOnPongFailure controls if we'll disconnect if a peer
|
||||||
// doesn't respond to a pong in time.
|
// doesn't respond to a pong in time.
|
||||||
|
|||||||
+2
-1
@@ -566,7 +566,8 @@
|
|||||||
; the headers of an HTTP request.
|
; the headers of an HTTP request.
|
||||||
; http-header-timeout=5s
|
; http-header-timeout=5s
|
||||||
|
|
||||||
; The number of restricted slots the server will allocate for peers.
|
; The max number of incoming connections allowed in the server. Outbound
|
||||||
|
; connections are not restricted.
|
||||||
; num-restricted-slots=100
|
; num-restricted-slots=100
|
||||||
|
|
||||||
; If true, a peer will *not* be disconnected if a pong is not received in time
|
; If true, a peer will *not* be disconnected if a pong is not received in time
|
||||||
|
|||||||
Reference in new issue
Block a user