Often getting timeout warning in ios device.

Options
nanda
edited January 2012 in Photon Server
Hi,

i build an ios app with photon support running in my local machine. I used to often get the following timeout message from the photon sever.

INFO: going to resend command: time: 11204 = 10959 sentCount: 3
INFO: going to resend command: time: 11704 = 9069 sentCount: 1
INFO: going to resend command: time: 13203 = 12964 sentCount: 2
INFO: going to resend command: time: 16203 = 15723 sentCount: 3
INFO: disconnect due to retry timeout (max retry time) time: 18704 originalSentTime: 8439
INFO: going to resend command: time: 311605 = 311300 sentCount: 1
INFO: going to resend command: time: 313105 = 312995 sentCount: 2
INFO: going to resend command: time: 316105 = 315885 sentCount: 3
INFO: disconnect due to retry timeout (max retry time) time: 321104 originalSentTime: 310605
INFO: going to resend command: time: 428923 = 428468 sentCount: 1
INFO: Info: Server sent disconnect because of a timeout. PeerId: 30470 RTT/Variance: 900/413

i got disconnected after receiving above information. Is this because of the internet connectivity or due to some other problem. i am using 3G connection in my ipad device.

Pls help me how to fix this issue?.

Comments

  • dreamora
    Options
    Don't use 3G or raise the timeout value in the photon config of your self hosted photon server.

    Its rather normal that you get timeout warnings and alike as 3G can have latencies from 50ms to 10'000ms and still remain 'connected' to its network, yet the default configurations set the timeout border at 5s and thats already pretty high (usable only for turn based games)
  • Tobias
    Options
    3G has the most timeouts cause it's limited.
    It makes sense to minimize the data you want to send and make use of unreliable operations where possible. Also, make sure to dispatch incoming commands (or call service) to handle the incoming results.
    Ping Tanks is running on 3G but it's far better on WiFi...