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

8/8 successfull

@daywalker90
daywalker90 force-pushed the pyln-testing-port-magic branch 6 times, most recently from 66ca50d to 21a5ca0 Compare August 11, 2026 14:40
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 21a5ca0 to 5314b03 Compare August 11, 2026 16:20
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