Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bind to port 0 in place of a random port #19

Open
turbio opened this issue Feb 28, 2020 · 1 comment
Open

bind to port 0 in place of a random port #19

turbio opened this issue Feb 28, 2020 · 1 comment

Comments

@turbio
Copy link
Owner

turbio commented Feb 28, 2020

When binding to a variable port the strategy is to choose a random port. This sounds like a real bad idea leading to random errors and other fun.

Should instead bind to port 0 in all cases where we currently listen randomly as this lets the os choose a suitable port.

@boehs
Copy link

boehs commented Jul 12, 2021

0 is too special, I propose 15319, the date of the initial commit (2015-3-19)

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

No branches or pull requests

2 participants