downlords-faf-client icon indicating copy to clipboard operation
downlords-faf-client copied to clipboard

Long delay in `game_launch` message

Open Askaholic opened this issue 2 years ago • 2 comments

Sometimes the game_launch message takes a long time to arrive when trying to start a game.

To reproduce:

  1. Log in
  2. Create game. Note that the game is not created
  3. Hit create game again. Now two games get created

Askaholic avatar May 02 '22 00:05 Askaholic

Also notably this allows the for cases when a client can send game_host request or game_join request in quick succession. The server then responds with potentially two game_launch messages when only one game_launch and an error would be expected.

Sheikah45 avatar May 02 '22 00:05 Sheikah45

After testing it on the test server this lag seems to be coming from the client. When sending the message through other means it seems to show up immediately.

Askaholic avatar May 02 '22 01:05 Askaholic

This is due to the client setting up the files and preferences before launching the game.

As to being able to launch multiple games at once on the server that is something that should be handled in the server code.

Sheikah45 avatar Dec 27 '23 15:12 Sheikah45