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

Socket not freed after gamemode restart #4

Open
Southclaws opened this issue Jan 18, 2015 · 2 comments
Open

Socket not freed after gamemode restart #4

Southclaws opened this issue Jan 18, 2015 · 2 comments

Comments

@Southclaws
Copy link

I posted this on the forum but I figured it would get a better response here.

I've mentioned this before but I will again because it's breaking my server restarts: Every time the server restarts with this plugin, it shows this error: "socket_listen(): Socket has failed to bind. (IP localhost, Port 7778) The port might be already in use." Yes I've called socket_stop_listen and yes I've called socket_destroy on OnGameModeExit. Any other time it works perfectly fine and there are no other programs running on the machine that are taking that port (I checked with netstat).

For now I've added a check on OnGameModeInit that just kills the server (using a crash*) if the socket fails to bind. The server does this a few times until finally binding properly. *Sending rcon exit or gmx doesn't work, I have to actually crash the server to make this work. I'd love to have a solution to this that doesn't require crashing the server and making it restart 4-5 times before binding properly!

@pedropapa
Copy link

confirmed, I have a minigames server and it restarts after each minigame ends, the sockets plugin doesn't work there because of this problem. Hope it gets fixed!

@karimcambridge
Copy link

Confirmed, we need this fixed.

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

No branches or pull requests

3 participants