Photon disconnects if a client loses connection for just a split second - how do I change this?

Things I've tried that haven't worked:

roomOptions.PlayerTtl = 20000;
roomOptions.EmptyRoomTtl = 20000;
PhotonNetwork.networkingPeer.SentCountAllowance = 25;
PhotonNetwork.networkingPeer.DisconnectTimeout = 50000;
PhotonNetwork.networkingPeer.QuickResendAttempts = 3;

I don't know what PlayerTtl is supposed to do, it doesn't change anything.
My players still disconnect if their connection is 100% stable (this even happens when playing on ethernet, not just wifi).

Any ideas?

Comments

  • Hi @nmkd,

    PlayerTtl describes, how long the player can be inactive before getting removed server-side. When using your code, the client would have 20 seconds to return to the room. If those 20 seconds expire, he and his buffered messages (this contains Instantiation calls and RPCs for example) get removed from the server.

    To see what could be wrong I would suggest you taking a look at the Analyzing Disconnects documentation page and see if this gives you some insights about the problem.