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

This subforum contains all the issues which we already resolved.
Kovus
Inserter
Inserter
Posts: 23
Joined: Sat Feb 27, 2016 5:25 pm
Contact:

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

Post 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.
Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

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

Post by Oxyd »

Okay, implemented in 0.16.39.
Kovus
Inserter
Inserter
Posts: 23
Joined: Sat Feb 27, 2016 5:25 pm
Contact:

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

Post by Kovus »

Sounds good, thanks!
Post Reply

Return to “Resolved Problems and Bugs”