Skip to content

pyln-testing: give btcproxy a port and choose better ports - #9399

Draft
daywalker90 wants to merge 1 commit into
ElementsProject:masterfrom
daywalker90:pyln-testing-port-magic
Draft

pyln-testing: give btcproxy a port and choose better ports#9399
daywalker90 wants to merge 1 commit into
ElementsProject:masterfrom
daywalker90:pyln-testing-port-magic

Conversation

@daywalker90

Copy link
Copy Markdown
Collaborator

btcproxy was using port 0 by default without going through our port reservation logic, so it may have caused "Address already in use" issues. It was also binding to 0.0.0.0, so on all addresses. For the port reservations to work we use 127.0.0.1 here too.

We choose from outside the source-port range of ports in hopes of avoiding more port bind race conditions.

Fixes: #9381
(hopefully)

I'm going to do like 10 CI runs to see if it improves.

@daywalker90
daywalker90 force-pushed the pyln-testing-port-magic branch from f5d703c to 386880d Compare August 10, 2026 18:45
@daywalker90

daywalker90 commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator Author

13/13 successfull

@daywalker90
daywalker90 force-pushed the pyln-testing-port-magic branch 11 times, most recently from 850b3aa to 3a93319 Compare August 12, 2026 11:21
btcproxy was using port 0 by default without going through our port
reservation logic, so it may have caused "Address already in use"
issues. It was also binding to 0.0.0.0, so on all addresses. For the
port reservations to work we use 127.0.0.1 here too.

We choose from outside the source-port range of ports in hopes of
avoiding more port bind race conditions.

Changelog-None
@daywalker90
daywalker90 force-pushed the pyln-testing-port-magic branch from 3a93319 to 0a9fadb Compare August 12, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: tests/test_closing.py::test_closing_higherfee address-in-use / timeout

1 participant