Skip to content

Conversation

@tnull
Copy link
Collaborator

@tnull tnull commented Nov 25, 2025

Okay, second, more thorough attempt:

Previously, we could in tests potentially run into listening port collisions resulting into InvalidSocketAddress errors. These errors could surface if we rolled port numbers that either collided with other concurrent tests or with other unrelated services running on localhost.

Here, we simply let the OS assign us a free port number when setting up the testing nodes, which avoids such collisions altoghether (mod the potential TOCTOU race here, which we ignore for now).

Previously, we could in tests potentially run into listening port
collisions resulting into `InvalidSocketAddress` errors. These errors
could surface if we rolled port numbers that either collided with other
concurrent tests *or* with other unrelated services running on
localhost.

Here, we simply let the OS assign us a free port number when setting up
the testing nodes, which avoids such collisions altoghether (mod the
potential TOCTOU race here, which we ignore for now).
@tnull tnull requested a review from joostjager November 25, 2025 12:25
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Nov 25, 2025

👋 Thanks for assigning @joostjager as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@tnull
Copy link
Collaborator Author

tnull commented Nov 25, 2025

Closing this as continuation on #718 was requested.

@tnull tnull closed this Nov 25, 2025
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.

2 participants