My client disconnects for no reason !

Options
Tazadar
edited November 2011 in Photon Server
Hello,

I have tried to simulate client packet loss with m_peer.NetworkSimulationSettings.IncomingLossPercentage = 50;

And my client disconnects while there is a 5000 ms inactivity time-out.
I send my ping every 100ms !

It works well without the incomingLossPercentage, of course.

Comments

  • Ok it seems that all ping packets are lost during the Timeout period.

    50% packet loss seems to be too strong to have a test that is close to a bad connection.

    What is a good packet loss ratio ?
  • dreamora
    Options
    anything beyond 20% normally is 'unrecoverable' for gaming purpose and already 20% is basically never seen on any kind of networking today including the worst of the breed 3G / 4G / LTE
  • Tobias
    Options
    A good packet loss rate is 1%. In a lan, it would be less in mobile networks, it could be more.
    Maybe a test with 5% is ok? This could still lead to a disconnect, of course.

    You don't need to send extra pings in Photon. We take care of that. Just send the data you need to send and make use of unreliable sending, where possible.
  • Thank you dreamora and Tobias !