Skip to content

Commit

Permalink
lntest: increase rpcmaxwebsockets for btcd
Browse files Browse the repository at this point in the history
This has been seen in the itest which can lead to the node startup
failure,
```
2024-11-20 18:55:15.727 [INF] RPCS: Max websocket clients exceeded [25] - disconnecting client 127.0.0.1:57224
```
  • Loading branch information
yyforyongyu committed Nov 25, 2024
1 parent 1104f12 commit e0fdc35
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lntest/btcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ func NewBackend(miner string, netParams *chaincfg.Params) (
"--nobanning",
// Don't disconnect if a reply takes too long.
"--nostalldetect",

// The default max num of websockets is 25, but the closed
// connections are not cleaned up immediately so we double the
// size.
//
// TODO(yy): fix this in `btcd` to clean up the stale
// connections.
"--rpcmaxwebsockets=50",
}
chainBackend, err := rpctest.New(
netParams, nil, args, node.GetBtcdBinary(),
Expand Down

0 comments on commit e0fdc35

Please sign in to comment.