Page 1 of 1
Is there a event for connect time out?
Posted: 11 May 2013, 06:17
by ganquan
i use a wrong ip to connect the server, and i found it after a long time waiting. I add listener for CONNECTION_LOST,DISCONNECT and CONNECTION, i didn't receive any event.
is there a event to handle this?
Re: Is there a event for connect time out?
Posted: 11 May 2013, 08:22
by Lapo
If the connection fails it should fire a CONNECTION event with a success parameter set to false.
As regards the TCP timeout this can change significantly from platform to platform, based on the underlying TCP stack implementation. Some stacks fail pretty quickly while others may take a longer times.
We'll do some research to see if there's any way to control the timeout in a "portable" way, although at the moment I am not sure if this is possible.
Thanks