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

Return listen address/socket details when running listen #142

Open
CMCDragonkai opened this issue Aug 27, 2018 · 2 comments
Open

Return listen address/socket details when running listen #142

CMCDragonkai opened this issue Aug 27, 2018 · 2 comments

Comments

@CMCDragonkai
Copy link

This way you can pass a 0 port, and get back a randomly assigned port.

Right now you have to use bjoern._default_instance[0].getsockname().

@jonashaag
Copy link
Owner

PR welcome

@tjb1982
Copy link
Contributor

tjb1982 commented Sep 17, 2020

Listen currently returns a socket (that can be used to call getsockname) so I don't think this issue is valid anymore.

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

No branches or pull requests

3 participants