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:
Hennadii Stepanov
2026-08-25 16:39:40 +01:00
parent 6f4109b448
commit b8a8893bf2

View File

@@ -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)