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

"io.socket.client.SocketIOException: timeout" (goes away after jvm restart)

Open Pritesh-Mhatre opened this issue 5 years ago • 1 comments

I have a long running server app that connects to another [target] service via https protocol.

Now sometimes I get an error "io.socket.client.SocketIOException: timeout". I am using a default timeout of 20 seconds.

The weird thing is that the target service is working fine, as I could access it from another application. But once I start seeing this error in my server app, it keeps coming again & again for all subsequent requests. Once I restart my server JVM, the error goes away. The connection is established in 150 milliseconds.

My server in this case is a client to the target service.

I am quite puzzled as to what could be the cause. There is no change in any config on a restart, but it starts working smoothly again.

Pritesh-Mhatre avatar Aug 08 '20 15:08 Pritesh-Mhatre

Any update on this issue, I am also facing the same problem

abhirit avatar Mar 05 '24 12:03 abhirit