Page 1 of 1

[Oxyd] [0.16] RCON port in TIME_WAIT prevents restart

Posted: Tue Apr 24, 2018 4:39 pm
by Kovus
I'm working with a persistent connection via rcon to a headless server. If the headless server quits while an rcon client is still connected, then the port goes into a TIME_WAIT state. This prevents the headless server from restarting until it finishes timing out based on the operating system settings.

I'm under the impression that setting a sockopt for SO_REUSEADDR (valid for linux & mac, might be under another name in windows) should allow the headless server to restart and re-grab the port without waiting for the previous connections to time out.

Perhaps this could be investigated for the next version.

Thanks.

Re: [Oxyd] [0.16] RCON port in TIME_WAIT prevents restart

Posted: Fri Apr 27, 2018 12:18 pm
by Oxyd
Okay, implemented in 0.16.39.

Re: [Oxyd] [0.16] RCON port in TIME_WAIT prevents restart

Posted: Fri Apr 27, 2018 3:00 pm
by Kovus
Sounds good, thanks!