New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dedicated server slow to stop while generating map #8878
Comments
How long does it take for the server to generate a 2048 x 2048 map without you interrupting the process? If that's close to the 1 minute mentioned, then there's a possibility that the server is finishing generating the map before exiting, even if it received a force-exit (SIGINT or SIGTERM) signal. Also, I can't seem to reproduce this on Windows 10. What OS and CPU are you running this on? |
I concur on that hunch.
GNU/Linux (Debian-compatible) |
OK I am noticing 2 distinct problems:
|
I can reproduce the server stop delay if I run the @Berbe Are you port-forwarding the specific port your server is listening to through your router? If not, the advertise to master server will fail early and will not cause the server stop to be delayed. |
The advertisement does not fail if I let the startup sequence finish. It works flawlessly in both IPv4 & IPv6 |
As noted in #9001, in case of a slow communication between the game and master server (for instance, resulting from delayed DNS traffic), acknowledgement of the signal is only done after datagrams have been sent to the master server. I trust the best behaviour would be to acknowledge the signal without depending on anything that could block. |
Version of OpenTTD
1.11.0-RC1
Expected result
Server stops quickly (within a few seconds)
Actual result
Server takes too long to stop.
Timed at ~1m on a 2,048 x 2,048 map (
map_x
=map_y
= 11).Note:
server_advertise = true
The rest of
openttd.cfg
does not seem to matter.Steps to reproduce
Also reproducible by sending SIGTERM
The text was updated successfully, but these errors were encountered: