Skip to content

Commit e470910

Browse files
committed
config: update docs for num-restricted-slots
1 parent 250a61a commit e470910

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

config.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,9 @@ const (
238238
// defaultHTTPHeaderTimeout is the default timeout for HTTP requests.
239239
DefaultHTTPHeaderTimeout = 5 * time.Second
240240

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.
243244
DefaultNumRestrictedSlots = 100
244245

245246
// BitcoinChainName is a string that represents the Bitcoin blockchain.
@@ -529,9 +530,9 @@ type Config struct {
529530
// before timing out reading the headers of an HTTP request.
530531
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."`
531532

532-
// NumRestrictedSlots is the number of restricted slots we'll allocate
533-
// in the server.
534-
NumRestrictedSlots uint64 `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+
NumRestrictedSlots uint64 `long:"num-restricted-slots" description:"The max number of incoming connections allowed in the server. Outbound connections are not restricted."`
535536

536537
// NoDisconnectOnPongFailure controls if we'll disconnect if a peer
537538
// doesn't respond to a pong in time.

sample-lnd.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,8 @@
566566
; the headers of an HTTP request.
567567
; http-header-timeout=5s
568568

569-
; The number of restricted slots the server will allocate for peers.
569+
; The max number of incoming connections allowed in the server. Outbound
570+
; connections are not restricted.
570571
; num-restricted-slots=100
571572

572573
; If true, a peer will *not* be disconnected if a pong is not received in time

0 commit comments

Comments
 (0)