glest / glest-source

Glest is a network multi-player cross-platform 3D real-time strategy (RTS) game, where you create armies of units and battle different factions.
https://glest.io
GNU General Public License v3.0
57 stars 39 forks source link

Clients freeze momentarily when server terminates #187

Closed andy5995 closed 5 years ago

andy5995 commented 6 years ago

This happens when someone is hosting a network game (not through a headless server)

In a network game, if the host terminates the server before clients disconnect, the clients freeze for several seconds.

This can also happen at the game set-up menu.

I'm not sure how possible it is to prevent the freeze. It's happening because clients are trying to communicate with the server. The freeze ends when the connection times out.

But it would be so much from a UX perspective if the server sent a message to all clients that it's shutting down, so some text could be printed in the chat console.

A message similar to: "Server is shutting down. Please wait a few moments..."

andy5995 commented 5 years ago

This was done by by @mathusummut , it just needs more testing before we close the ticket.

Jammyjamjamman commented 5 years ago

I don't think the fix worked for me on linux. Didn't notice much difference. :/

andy5995 commented 5 years ago

cc @ZetaGlest/cpp