Disconnect, timeout
Options
Hello.
I did not find the answer on the forum, so I ask.
I have a game, shooter.
There is such a problem: If the network disappears for a moment (turn on and off 4G), the server will still turn me off
Errors
Cannot send to x.xxx.xxx.xx. Network is unreachable
Cannot send op: 254 not connected. PeerState: Disconnected
Although the players continue to move and I see their updates. But after a couple of seconds, I still disconnect from the server.
Please tell me how to increase the stability of the connection (I would like to have 3-5 seconds to restore the connection)
We now have 10 percent of users who receive disconnects during a game (With a stable connection)
Unity 2017 4.29
PUN 1.9
I did not find the answer on the forum, so I ask.
I have a game, shooter.
There is such a problem: If the network disappears for a moment (turn on and off 4G), the server will still turn me off
Errors
Cannot send to x.xxx.xxx.xx. Network is unreachable
Cannot send op: 254 not connected. PeerState: Disconnected
Although the players continue to move and I see their updates. But after a couple of seconds, I still disconnect from the server.
Please tell me how to increase the stability of the connection (I would like to have 3-5 seconds to restore the connection)
We now have 10 percent of users who receive disconnects during a game (With a stable connection)
Unity 2017 4.29
PUN 1.9
0
Comments
-
Hi,
there are two things to address here.
-- faster detection of internet failure: https://forum.photonengine.com/discussion/8550/photon-not-disconnecting-if-we-disconnect-internet-while-connected#latest
-- have your player stay in the room for a given period of timne even if disconnected: you need to set the PlayerTttl to the amount of seconds you would like your player to remain in the room while disconnected ( while trying to reconnected as well) : https://doc-api.photonengine.com/en/pun/v2/class_photon_1_1_realtime_1_1_room_options.html#a209447cfcc1477298f53bd59d7771e88
Bye,
Jean0