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.
[Oxyd] [0.16] RCON port in TIME_WAIT prevents restart
Re: [Oxyd] [0.16] RCON port in TIME_WAIT prevents restart
Okay, implemented in 0.16.39.
Re: [Oxyd] [0.16] RCON port in TIME_WAIT prevents restart
Sounds good, thanks!