Switching many players to spectator simultaneously
Posted: 08 Apr 2009, 12:58
Good day all,
We have the smartfoxserver pro licence and are currently stress testing our application. A problem came forward which is the following:
After a game is finished all the players of a room need to change to spectator mode and must confirm that he/she want to continue playing. When I figured out that a player to spectator switch was not possible with smartfox I implemented the solution suggested in several threads (log user out of the room and let him join again as spectator).
The problem we think now is that when hundreds of players are switching simultaneously when the game is finished, too much messages are generated per player and the message queue overflows and starts dropping (too much) messages.
This eventually leads to a situation that all users are disconnected by smartfox.
The extensions are written in java.
I hope someone can advice us with this problem.
Thanks in advance!
We have the smartfoxserver pro licence and are currently stress testing our application. A problem came forward which is the following:
After a game is finished all the players of a room need to change to spectator mode and must confirm that he/she want to continue playing. When I figured out that a player to spectator switch was not possible with smartfox I implemented the solution suggested in several threads (log user out of the room and let him join again as spectator).
The problem we think now is that when hundreds of players are switching simultaneously when the game is finished, too much messages are generated per player and the message queue overflows and starts dropping (too much) messages.
This eventually leads to a situation that all users are disconnected by smartfox.
The extensions are written in java.
I hope someone can advice us with this problem.
Thanks in advance!