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

Binding to random port #181

Open
the20login opened this issue Oct 31, 2018 · 1 comment
Open

Binding to random port #181

the20login opened this issue Oct 31, 2018 · 1 comment

Comments

@the20login
Copy link

There are cases when you would like to bind to random port.
Intuitive way to do so is to set port to zero.
Unfortunately, there is no way to extract real port. API method just return configured port instead of getting it directly from socket.

I, personally, would prefer separated method (like "bindPort()") instead of altering current method behaviour. This also helps to maintain backward compatibility.

@the20login
Copy link
Author

the20login commented Oct 31, 2018

I'm ready to write PR, if you point me to preferred API (alter current method or add new one).

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

1 participant