mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-11 21:20:39 +02:00
qa: Lower -rpcmaxconnections in interface_http.py test
On some systems, such as NetBSD, the non-default `-rpcmaxconnections=128` is too high, so bitcoind refuses to start: ``` Error: Not enough file descriptors available. 256 available, 290 required. ``` The test only needs a value above the default of 16. Use 64 and lower `-maxconnections` in that case so the total fits in 256.
This commit is contained in:
@@ -612,9 +612,10 @@ class HTTPBasicsTest (BitcoinTestFramework):
|
||||
|
||||
# Disable timeout so the initial batch of clients stays connected
|
||||
# until the end of the test.
|
||||
for comment, extra_args, limit in [
|
||||
("default (16)", ["-rpcservertimeout=0", "-rest"], 16),
|
||||
("-rpcmaxconnections=128", ["-rpcservertimeout=0", "-rest", "-rpcmaxconnections=128"], 128)
|
||||
for comment, extra_args, limit in [
|
||||
("default (16)", ["-rpcservertimeout=0", "-rest"], 16),
|
||||
("-rpcmaxconnections=64", ["-rpcservertimeout=0", "-rest",
|
||||
"-rpcmaxconnections=64", "-maxconnections=16"], 64)
|
||||
]:
|
||||
self.log.info(f"Using connection limit: {comment}")
|
||||
self.restart_node(0, extra_args=extra_args)
|
||||
|
||||
Reference in New Issue
Block a user