-
Notifications
You must be signed in to change notification settings - Fork 4
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 SO_REUSEPORT to econ socket #89
base: master
Are you sure you want to change the base?
Conversation
It seems to fix the issue i am having with restarting the server fast enough. Closes necropotame#68
if it works, you can merge it when you want. |
@@ -912,6 +913,10 @@ static int priv_net_create_socket(int domain, int type, struct sockaddr *addr, i | |||
} | |||
#endif | |||
|
|||
if (setsockopt(sock, SOL_SOCKET, SO_REUSEPORT, &(int){ 1 }, sizeof(int)) < 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this will not work on windows. Maybe i need SO_REUSEADDR
...
Lets see what smart folks from teeworlds/teeworlds#2034 say |
How it the state of this PR? Can we merge it? |
We are waiting for the upstream fix and comments. What we have here should not be merged. |
It seems to fix the issue i am having with restarting the server.
Closes #68