[Oxyd] [0.16] RCON port in TIME_WAIT prevents restart
Posted: Tue Apr 24, 2018 4:39 pm
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.
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.