Skip to content

Conversation

@DYH1319
Copy link

@DYH1319 DYH1319 commented Jan 15, 2026

#1006 In the GetFreePort() method, add an attempt to listen on the port to ensure the returned port is available for listening.

Copy link
Collaborator

@FlorianRappl FlorianRappl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my perspective that works and is fine - only thing we might (want to?) improve is the "+ 2". I'd much rather prefer a random port that is placed between 5_000 and 65_535 excl. the already bound ports (local addresses) and previous attempts.

Thanks a lot for the awesome and swift work! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants