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 way to disable port and address reuse #2303

Merged
merged 3 commits into from May 19, 2019
Merged

Conversation

rracariu
Copy link
Contributor

@rracariu rracariu commented Apr 16, 2019

This integrates with recent event core reuseAddress flag.
It allows one to selectively disable those flags.
See vibe-d/vibe-core#150

@wilzbach
Copy link
Member

@wilzbach wilzbach commented Apr 19, 2019

If it's the default, why not rename the options accordingly then: doNotReuseAddress (or sth. like that)

http/vibe/http/server.d Outdated Show resolved Hide resolved
@rracariu
Copy link
Contributor Author

@rracariu rracariu commented Apr 21, 2019

If it's the default, why not rename the options accordingly then: doNotReuseAddress (or sth. like that)

Was looking to be consistent with reusePort and the TCP and Stream defines for the reuseAddress option.

@s-ludwig
Copy link
Member

@s-ludwig s-ludwig commented Apr 23, 2019

I would propose to add a new defaults enum member, analoguous to TCPListenOptions and StreamListenOptions. It makes sense to have this as an additive option in terms of consistency, but switching default values in multiple places doesn't seem to be a good long-term idea either.

@s-ludwig s-ludwig merged commit ade7d0c into vibe-d:master May 19, 2019
0 of 2 checks passed
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.

None yet

4 participants