Forum Multiplayer Disconnection

Discussion and help relating to the PlayerIO Multiplayer API.

Disconnection

Postby lauromrcruz » September 7th, 2017, 5:40 am

There are any king of inactivity disconection to the server? Recently we have noticed a disconnection if the connection is inactive for like 3 minutes...
lauromrcruz
 
Posts: 21
Joined: July 10th, 2013, 3:02 pm

Re: Disconnection

Postby Henrik » September 9th, 2017, 8:47 pm

That depends on which platform the client is running on, and what the network looks like between the client and the server.

We have enabled TCP-level keepalive for all multiplayer connections, but that's not a guarantee that the connection will remain open if inactive for a longer period of time. For most games this is not an issue, since multiplayer play is usually very active for the duration of the game, but if your game is different, and you're seeing a lot of idle disconnects, then you can always implement keepalive yourself, simply by sending a message from client to server every two minutes of inactivity, or so.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm


Return to Multiplayer



cron