test: avoid BSD ephemeral-port collisions in HTTP clients #36916

Manually merged
willcl-ark merged 1 commit from fix-bsd-http-ephemeral-ports into master 2026-11-27 11:22:13 +00:00 AGit
willcl-ark commented 2026-11-19 15:43:44 +00:00 (Migrated from github.com)

While stress-testing #36147 I noticed sporadic port collisions still occurring on FreeBSD.

set_ephemeral_port_range() keeps the source port out of the test port range, but only for sockets the framework creates itself. Python's http.client creates its sockets internally, so RPC and REST connections can still be given a source port inside the test range. A connection to a closed port can then connect to itself. For example, the wrong-RPC-port startup check failed with BadStatusLine: POST / HTTP/1.1 because the client read back its own request.

This change adds a netutil.HTTPConnection subclass that sets the port range before connecting, and uses it in AuthServiceProxy and in the tests that open HTTP connections directly.

HTTPS is left unchanged because we don't serve RPC over TLS so it seems unnecessary.

While stress-testing #36147 I noticed sporadic port collisions still occurring on FreeBSD. `set_ephemeral_port_range()` keeps the source port out of the test port range, but only for sockets the framework creates itself. Python's `http.client` creates its sockets internally, so RPC and REST connections can still be given a source port inside the test range. A connection to a closed port can then connect to itself. For example, the wrong-RPC-port startup check failed with `BadStatusLine: POST / HTTP/1.1` because the client read back its own request. This change adds a `netutil.HTTPConnection` subclass that sets the port range before connecting, and uses it in `AuthServiceProxy` and in the tests that open HTTP connections directly. HTTPS is left unchanged because we don't serve RPC over TLS so it seems unnecessary.
DrahtBot commented 2026-11-19 15:43:53 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK hebasto

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #36753 (rpc: Report -rpcwhitelist denials as JSON-RPC errors by ryanofsky)
  • #36716 (net: only monitor select exceptions while connecting by Sjors)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

LLM Linter (✨ experimental)

Possible places where named args for integral literals may be used (e.g. func(x, /*named_arg=*/0) in C++, and func(x, named_arg=0) in Python):

  • test/functional/test_framework/netutil.py: socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM)

2026-11-24 17:37:59

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36916 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36916.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36916#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [hebasto](https://github.com/bitcoin/bitcoin/pull/36916#pullrequestreview-6044400842) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#36753](https://github.com/bitcoin/bitcoin/pull/36753) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36753.svg"></sub> (rpc: Report -rpcwhitelist denials as JSON-RPC errors by ryanofsky) * [#36716](https://github.com/bitcoin/bitcoin/pull/36716) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36716.svg"></sub> (net: only monitor select exceptions while connecting by Sjors) If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. <!--5faf32d7da4f0f540f40219e4f7537a3--> ### LLM Linter (✨ experimental) Possible places where named args for integral literals may be used (e.g. `func(x, /*named_arg=*/0)` in C++, and `func(x, named_arg=0)` in Python): - `test/functional/test_framework/netutil.py`: `socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM)` <sup>2026-11-24 17:37:59</sup>
hebasto (Migrated from github.com) reviewed 2026-11-19 15:45:39 +00:00
hebasto (Migrated from github.com) left a comment

Concept ACK.

Concept ACK.
First-time contributor

🔵 Suggestion · Mocked HTTP test leaves BSD source-port allocation unchecked

The mocked test verifies socket-option ordering but not actual source-port allocation; a supplemental BSD-only loopback check would cover whether the kernel applies the option during implicit binding.

Location: test/functional/test_framework/netutil.py:300 (head).

Review coverage was incomplete.


Reviewed: 41c4df2eee61 · Review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:301f8fac66b8cbe87114981d6600f15187695a2edf245458a232c3958e920add:3329223fb40bbbe44124b0523f0fa08f23650d06836368f60e45a38d2db02971 --> <!-- ralph-base:bb84842234f70446459edd1a0d63422ee29d5111 --> <!-- ralph-head:41c4df2eee61b0c564be6f39aa6e48dabe0a8870 --> <!-- ralph-case:dcefb10d1cd127968c8f48943f08ef537055515f8ea593fe7c4ab69acca281a1 --> **🔵 Suggestion · Mocked HTTP test leaves BSD source-port allocation unchecked** The mocked test verifies socket-option ordering but not actual source-port allocation; a supplemental BSD-only loopback check would cover whether the kernel applies the option during implicit binding. Location: [`test/functional/test_framework/netutil.py:300`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/41c4df2eee61b0c564be6f39aa6e48dabe0a8870/test/functional/test_framework/netutil.py#L300>) (head). Review coverage was incomplete. <!-- Review tier: routine --> --- Reviewed: [`41c4df2eee61`](<https://git.fish.foo/bitcoin/bitcoin/commit/41c4df2eee61b0c564be6f39aa6e48dabe0a8870>) · [Review report](<https://review.fish.foo/report/36916-41c4df2eee61b0c564be6f39aa6e48dabe0a8870-3053-2.html>) · [Previous reports](<https://review.fish.foo/traces/36916/>) [permalink](<https://review.fish.foo/report/36916-41c4df2eee61b0c564be6f39aa6e48dabe0a8870-3053-2.html>)
hebasto commented 2026-11-24 11:25:20 +00:00 (Migrated from github.com)

While stress-testing https://github.com/bitcoin/bitcoin/pull/36147 I noticed sporadic port collisions still occurring on FreeBSD.

Same happened here as well:

495/502 - feature_framework_startup_failures.py failed (exit code 1), Duration: 2 s

stdout:
2026-11-24T10:41:09.382497Z TestFramework (INFO): PRNG seed is: 2616775978278269252
2026-11-24T10:41:09.434912Z TestFramework (INFO): Initializing test directory /tmp/test_runner_₿_🏃_20261124_103322/feature_framework_startup_failures_6
2026-11-24T10:41:09.451627Z TestFramework (INFO): Verifying _verify_startup_failure() functionality (self-check).
2026-11-24T10:41:09.945849Z TestFramework (INFO): Parent process is measuring node startup duration in order to obtain a reasonable timeout value for later tests...
2026-11-24T10:41:10.335016Z TestFramework (INFO): ...measured 0.2s.
2026-11-24T10:41:10.335109Z TestFramework (INFO): Verifying inability to connect to bitcoind's RPC interface due to wrong port results in one exception containing at least one OSError.
2026-11-24T10:41:11.037641Z TestFramework (ERROR): Unexpected exception:
Traceback (most recent call last):
  File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 149, in main
    self.run_test()
  File "/root/build/test/functional/feature_framework_startup_failures.py", line 94, in run_test
    self._verify_startup_failure(
  File "/root/build/test/functional/feature_framework_startup_failures.py", line 66, in _verify_startup_failure
    assert not errors, (f"Child test did NOT contain (only) expected errors:\n{linesep.join(errors)}\n" +
           ^^^^^^^^^^
AssertionError: Child test did NOT contain (only) expected errors:
Found 0/1 occurrences of the specific exception: AssertionError: \[node 0\] Unable to connect to bitcoind after \d+s \(ignored errors: {[^}]*'OSError \w+'?: \d+[^}]*}, latest: '[\w ]+'/\w+\([^)]+\)\)

<TestWrongRpcPortStartupFailure OUTPUT BEGIN>
2026-11-24T10:41:10.675636Z TestFramework (INFO): PRNG seed is: 5167214922848656805
2026-11-24T10:41:10.727670Z TestFramework (INFO): Initializing test directory /tmp/test_runner_₿_🏃_20261124_103322/feature_framework_startup_failures_6/86d994c9
2026-11-24T10:41:10.916508Z TestFramework (ERROR): Unexpected exception:
Traceback (most recent call last):
  File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 145, in main
    self.setup()
  File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 280, in setup
    self.setup_network()
  File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 367, in setup_network
    self.setup_nodes()
  File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 389, in setup_nodes
    self.start_nodes()
  File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 526, in start_nodes
    node.wait_for_rpc_connection(wait_for_full_init=wait_for_full_init)
  File "/root/bitcoin/test/functional/test_framework/test_node.py", line 379, in wait_for_rpc_connection
    rpc.getblockcount()
  File "/root/bitcoin/test/functional/test_framework/coverage.py", line 50, in __call__
    return_val = self.auth_service_proxy_instance.__call__(*args, **kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/bitcoin/test/functional/test_framework/authproxy.py", line 128, in __call__
    response, status = self._request('POST', self.__url.path, postdata.encode('utf-8'))
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/bitcoin/test/functional/test_framework/authproxy.py", line 102, in _request
    return self._get_response()
           ^^^^^^^^^^^^^^^^^^^^
  File "/root/bitcoin/test/functional/test_framework/authproxy.py", line 165, in _get_response
    http_response = self.__conn.getresponse()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/http/client.py", line 1478, in getresponse
    response.begin()
  File "/usr/local/lib/python3.12/http/client.py", line 343, in begin
    version, status, reason = self._read_status()
                              ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/http/client.py", line 325, in _read_status
    raise BadStatusLine(line)
http.client.BadStatusLine: POST / HTTP/1.1

2026-11-24T10:41:10.984504Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later.
2026-11-24T10:41:10.984858Z TestFramework (WARNING): Not cleaning up dir /tmp/test_runner_₿_🏃_20261124_103322/feature_framework_startup_failures_6/86d994c9
2026-11-24T10:41:10.984988Z TestFramework (ERROR): Test failed. Test logging available at /tmp/test_runner_₿_🏃_20261124_103322/feature_framework_startup_failures_6/86d994c9/test_framework.log
2026-11-24T10:41:10.985322Z TestFramework (ERROR): 
2026-11-24T10:41:10.985601Z TestFramework (ERROR): Hint: Call /root/bitcoin/test/functional/combine_logs.py '/tmp/test_runner_₿_🏃_20261124_103322/feature_framework_startup_failures_6/86d994c9' to consolidate all logs
2026-11-24T10:41:10.985719Z TestFramework (ERROR): 
2026-11-24T10:41:10.985812Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
2026-11-24T10:41:10.985950Z TestFramework (ERROR): https://github.com/bitcoin/bitcoin/issues
2026-11-24T10:41:10.986027Z TestFramework (ERROR): 
[node 0] Cleaning up leftover process
<TestWrongRpcPortStartupFailure OUTPUT END>

2026-11-24T10:41:11.040613Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later.
2026-11-24T10:41:11.040770Z TestFramework (WARNING): Not cleaning up dir /tmp/test_runner_₿_🏃_20261124_103322/feature_framework_startup_failures_6
2026-11-24T10:41:11.040851Z TestFramework (ERROR): Test failed. Test logging available at /tmp/test_runner_₿_🏃_20261124_103322/feature_framework_startup_failures_6/test_framework.log
2026-11-24T10:41:11.041016Z TestFramework (ERROR): 
2026-11-24T10:41:11.041163Z TestFramework (ERROR): Hint: Call /root/bitcoin/test/functional/combine_logs.py '/tmp/test_runner_₿_🏃_20261124_103322/feature_framework_startup_failures_6' to consolidate all logs
2026-11-24T10:41:11.041295Z TestFramework (ERROR): 
2026-11-24T10:41:11.041363Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
2026-11-24T10:41:11.041560Z TestFramework (ERROR): https://github.com/bitcoin/bitcoin/issues
2026-11-24T10:41:11.041620Z TestFramework (ERROR): 


stderr:

> While stress-testing https://github.com/bitcoin/bitcoin/pull/36147 I noticed sporadic port collisions still occurring on FreeBSD. Same happened [here](https://github.com/hebasto/bitcoin-core-nightly/actions/runs/45370181442/job/138362140124) as well: ``` 495/502 - feature_framework_startup_failures.py failed (exit code 1), Duration: 2 s stdout: 2026-11-24T10:41:09.382497Z TestFramework (INFO): PRNG seed is: 2616775978278269252 2026-11-24T10:41:09.434912Z TestFramework (INFO): Initializing test directory /tmp/test_runner_₿_🏃_20261124_103322/feature_framework_startup_failures_6 2026-11-24T10:41:09.451627Z TestFramework (INFO): Verifying _verify_startup_failure() functionality (self-check). 2026-11-24T10:41:09.945849Z TestFramework (INFO): Parent process is measuring node startup duration in order to obtain a reasonable timeout value for later tests... 2026-11-24T10:41:10.335016Z TestFramework (INFO): ...measured 0.2s. 2026-11-24T10:41:10.335109Z TestFramework (INFO): Verifying inability to connect to bitcoind's RPC interface due to wrong port results in one exception containing at least one OSError. 2026-11-24T10:41:11.037641Z TestFramework (ERROR): Unexpected exception: Traceback (most recent call last): File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 149, in main self.run_test() File "/root/build/test/functional/feature_framework_startup_failures.py", line 94, in run_test self._verify_startup_failure( File "/root/build/test/functional/feature_framework_startup_failures.py", line 66, in _verify_startup_failure assert not errors, (f"Child test did NOT contain (only) expected errors:\n{linesep.join(errors)}\n" + ^^^^^^^^^^ AssertionError: Child test did NOT contain (only) expected errors: Found 0/1 occurrences of the specific exception: AssertionError: \[node 0\] Unable to connect to bitcoind after \d+s \(ignored errors: {[^}]*'OSError \w+'?: \d+[^}]*}, latest: '[\w ]+'/\w+\([^)]+\)\) <TestWrongRpcPortStartupFailure OUTPUT BEGIN> 2026-11-24T10:41:10.675636Z TestFramework (INFO): PRNG seed is: 5167214922848656805 2026-11-24T10:41:10.727670Z TestFramework (INFO): Initializing test directory /tmp/test_runner_₿_🏃_20261124_103322/feature_framework_startup_failures_6/86d994c9 2026-11-24T10:41:10.916508Z TestFramework (ERROR): Unexpected exception: Traceback (most recent call last): File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 145, in main self.setup() File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 280, in setup self.setup_network() File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 367, in setup_network self.setup_nodes() File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 389, in setup_nodes self.start_nodes() File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 526, in start_nodes node.wait_for_rpc_connection(wait_for_full_init=wait_for_full_init) File "/root/bitcoin/test/functional/test_framework/test_node.py", line 379, in wait_for_rpc_connection rpc.getblockcount() File "/root/bitcoin/test/functional/test_framework/coverage.py", line 50, in __call__ return_val = self.auth_service_proxy_instance.__call__(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/bitcoin/test/functional/test_framework/authproxy.py", line 128, in __call__ response, status = self._request('POST', self.__url.path, postdata.encode('utf-8')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/bitcoin/test/functional/test_framework/authproxy.py", line 102, in _request return self._get_response() ^^^^^^^^^^^^^^^^^^^^ File "/root/bitcoin/test/functional/test_framework/authproxy.py", line 165, in _get_response http_response = self.__conn.getresponse() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/http/client.py", line 1478, in getresponse response.begin() File "/usr/local/lib/python3.12/http/client.py", line 343, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/http/client.py", line 325, in _read_status raise BadStatusLine(line) http.client.BadStatusLine: POST / HTTP/1.1 2026-11-24T10:41:10.984504Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later. 2026-11-24T10:41:10.984858Z TestFramework (WARNING): Not cleaning up dir /tmp/test_runner_₿_🏃_20261124_103322/feature_framework_startup_failures_6/86d994c9 2026-11-24T10:41:10.984988Z TestFramework (ERROR): Test failed. Test logging available at /tmp/test_runner_₿_🏃_20261124_103322/feature_framework_startup_failures_6/86d994c9/test_framework.log 2026-11-24T10:41:10.985322Z TestFramework (ERROR): 2026-11-24T10:41:10.985601Z TestFramework (ERROR): Hint: Call /root/bitcoin/test/functional/combine_logs.py '/tmp/test_runner_₿_🏃_20261124_103322/feature_framework_startup_failures_6/86d994c9' to consolidate all logs 2026-11-24T10:41:10.985719Z TestFramework (ERROR): 2026-11-24T10:41:10.985812Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log. 2026-11-24T10:41:10.985950Z TestFramework (ERROR): https://github.com/bitcoin/bitcoin/issues 2026-11-24T10:41:10.986027Z TestFramework (ERROR): [node 0] Cleaning up leftover process <TestWrongRpcPortStartupFailure OUTPUT END> 2026-11-24T10:41:11.040613Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later. 2026-11-24T10:41:11.040770Z TestFramework (WARNING): Not cleaning up dir /tmp/test_runner_₿_🏃_20261124_103322/feature_framework_startup_failures_6 2026-11-24T10:41:11.040851Z TestFramework (ERROR): Test failed. Test logging available at /tmp/test_runner_₿_🏃_20261124_103322/feature_framework_startup_failures_6/test_framework.log 2026-11-24T10:41:11.041016Z TestFramework (ERROR): 2026-11-24T10:41:11.041163Z TestFramework (ERROR): Hint: Call /root/bitcoin/test/functional/combine_logs.py '/tmp/test_runner_₿_🏃_20261124_103322/feature_framework_startup_failures_6' to consolidate all logs 2026-11-24T10:41:11.041295Z TestFramework (ERROR): 2026-11-24T10:41:11.041363Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log. 2026-11-24T10:41:11.041560Z TestFramework (ERROR): https://github.com/bitcoin/bitcoin/issues 2026-11-24T10:41:11.041620Z TestFramework (ERROR): stderr: ```
hebasto (Migrated from github.com) approved these changes 2026-11-24 17:25:10 +00:00
hebasto (Migrated from github.com) left a comment

ACK a2c3b1e27f, I have reviewed the code and it looks OK.

Tested on FreeBSD in https://github.com/hebasto/bitcoin-core-nightly/pull/491, with the ephemeral port range narrowed so that the failure reproduces often.

Logs are available here: https://github.com/hebasto/bitcoin-core-nightly/actions/runs/45442316798.

The commit message says that the same can happen on OpenBSD. However, the OpenBSD kernel does not allow a socket to connect to itself.

ACK a2c3b1e27f98910ecb532b6e5109d0d7db348266, I have reviewed the code and it looks OK. Tested on FreeBSD in https://github.com/hebasto/bitcoin-core-nightly/pull/491, with the ephemeral port range narrowed so that the failure reproduces often. Logs are available here: https://github.com/hebasto/bitcoin-core-nightly/actions/runs/45442316798. The commit message says that the same can happen on OpenBSD. However, the OpenBSD kernel does not allow a socket to connect to itself.
willcl-ark commented 2026-11-24 17:31:20 +00:00 (Migrated from github.com)

Thanks for reviewing.

the OpenBSD kernel does not allow a socket to connect to itself.

Do you have a source for this you can share? I'm struggling to find something myself...

NVM I found it. Will amend the commit message.

Thanks for reviewing. > the OpenBSD kernel does not allow a socket to connect to itself. ~~Do you have a source for this you can share? I'm struggling to find something myself...~~ NVM I found it. Will amend the commit message.
willcl-ark commented 2026-11-24 17:37:59 +00:00 (Migrated from github.com)

Commit message amended.

Commit message amended.
hebasto (Migrated from github.com) approved these changes 2026-11-24 17:43:34 +00:00
hebasto (Migrated from github.com) left a comment

re-ACK 41c4df2eee.

re-ACK 41c4df2eee61b0c564be6f39aa6e48dabe0a8870.
hebasto commented 2026-11-24 17:45:36 +00:00 (Migrated from github.com)

cc @vasild @theStack

cc @vasild @theStack
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36916
No description provided.