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

Add option to opt out of sock flag reuseaddr in socket.lua:bind #377

Open
Fish013 opened this issue Apr 16, 2022 · 1 comment
Open

Add option to opt out of sock flag reuseaddr in socket.lua:bind #377

Fish013 opened this issue Apr 16, 2022 · 1 comment

Comments

@Fish013
Copy link

Fish013 commented Apr 16, 2022

I think there are valid use-cases where i want to bind to a address/port but want to fail if the address is already in use.

sock:setoption("reuseaddr", true)

@alerque
Copy link
Member

alerque commented Apr 16, 2022

That sounds like a reasonable thing to need. Contributions are welcome. I'm happy to facilitate PRs but will likely not have a chance to hack on this myself for some time.

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

No branches or pull requests

2 participants