socket.io-client-java icon indicating copy to clipboard operation
socket.io-client-java copied to clipboard

Timeout over 10000 ms not being handled properly (Android 7.1.1)

Open thully opened this issue 8 years ago • 0 comments

I'm using socket-io-client-java with an Android app running in the latest version of the Android Studio emulator, and I've been having a problem with timeout. Whenever I set the client's timeout value to greater than 10000 ms (which it is by default, as the default is 20000), my Socket.EVENT_CONNECT_TIMEOUT listener is never called, and the Socket.EVENT_CONNECT_ERROR handler gets triggered with the following error:

"io.socket.engineio.client.EngineIOException: xhr poll error"

If I specify a timeout value under 10000 ms, the timeout handler gets called as expected.

thully avatar May 10 '17 14:05 thully