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

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

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

Post by Kovus » 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.

Oxyd
Factorio Staff
Factorio Staff
Posts: 1245
Joined: Thu May 07, 2015 8:42 am
Contact:

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

Post by Oxyd » Fri Apr 27, 2018 12:18 pm

Okay, implemented in 0.16.39.

Kovus
Inserter
Inserter
Posts: 22
Joined: Sat Feb 27, 2016 5:25 pm
Contact:

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

Post by Kovus » Fri Apr 27, 2018 3:00 pm

Sounds good, thanks!

Post Reply

Return to “Resolved Problems and Bugs”

Who is online

Users browsing this forum: No registered users