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

Allow SO_REUSEADDR and SO_REUSEPORT to be set simultaneously #1623

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rtpt-erikgeiser
Copy link

Currently it is impossible to set both SO_REUSEADDR and SO_REUSEPORT simultaneously. If a user tries to set both, there is no error and none of the options are actually set which can be quite confusing.

This PR not only fixes this but adds a test for all combinations of the socket options. In contrast to the existing tests for SO_REUSEADDR and SO_REUSEPORT, this test does not check that the options do what they are supposed to do (this is the kernels responsibility) but it tests whether or not the options are actually set as requested by the user (which is the library's responsibility).

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

Successfully merging this pull request may close these issues.

1 participant