The International Simutrans Forum

 

Author Topic: [BUG] Server crashes when client aborts connection  (Read 292 times)

0 Members and 1 Guest are viewing this topic.

Offline freddyhayward au

  • *
  • Posts: 32
  • Languages: EN
[BUG] Server crashes when client aborts connection
« on: May 31, 2019, 03:36:14 AM »
Steps to reproduce, case 1:
* open two clients
* connect to server using client A
* while client A reads "server preparing game" or "transferring game": stop client A using task manager / system monitor
* attempt to connect to server using client B

Expected behaviour:
* client B should be able to connect to server

Actual behaviour:
* client B reads "server did not respond!"

Steps to reproduce, case 2:
* open two clients
* connect to server using client A
* attempt to connect to server using client B
* while client B reads "server preparing game" or "transferring game": stop client B using task manager / system monitor

Expected behaviour:
* client A should remain connected

Actual behaviour:
* client A reads "Lost synchronisation with server"

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18679
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: [BUG] Server crashes when client aborts connection
« Reply #1 on: August 10, 2019, 03:01:08 PM »
Thank you for your report.

I am afraid that I have been unable to reproduce this with a local server in either case 1 or case 2 outlined above.

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2711
  • Languages: EN
Re: [BUG] Server crashes when client aborts connection
« Reply #2 on: August 10, 2019, 10:47:09 PM »
In case 1 there should be a ~30 second delay before Client B will see the server. This is due to TCP timeout, assuming the server can cope with players leaving while joining.