mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-16 14:50:02 +02:00
lntest: increase rpcmaxwebsockets
for btcd
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 ```
This commit is contained in:
parent
4e85d86a2e
commit
f912f407c8
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user