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 SO_REUSEPORT to econ socket #89

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bretonium
Copy link
Collaborator

It seems to fix the issue i am having with restarting the server.

Closes #68

It seems to fix the issue i am having with restarting the server fast
enough.

Closes necropotame#68
@teoman002
Copy link
Collaborator

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) {
Copy link
Collaborator Author

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...

@bretonium
Copy link
Collaborator Author

Lets see what smart folks from teeworlds/teeworlds#2034 say

src/base/system.c Outdated Show resolved Hide resolved
@teoman002
Copy link
Collaborator

How it the state of this PR? Can we merge it?

@bretonium
Copy link
Collaborator Author

We are waiting for the upstream fix and comments. What we have here should not be merged.

@teoman002 teoman002 added hard-to-fix This issue is difficult to fix help wanted Extra attention is needed low priority For placeholder issues labels Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hard-to-fix This issue is difficult to fix help wanted Extra attention is needed low priority For placeholder issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

econ socket is not closed on SIGTERM and SIGINT
3 participants