socketio / engine.io-client-java

Engine.IO Client Library for Java
http://socketio.github.io/engine.io-client-java
Other
360 stars 167 forks source link

Failed polling transport kills websocket transport #76

Closed hiredman closed 3 years ago

hiredman commented 7 years ago

Hello,

I am indirectly a user of engine.io-client-java via socket.io-client-java. I have a server that for reasons which I hope to rectify later fails to correctly respond to the requests the polling transport makes. When the socket.io-client-java library is setup to only use websockets it is able to connect to the server just fine. If I leave the default set of transport in place (polling and websockets) the client fails to successfully connect.

What appears to happen (from the logs) is engine.io-client-java starts both the websocket and the polling transport, and when the polling transport fails, it kills the socket and makes the whole thing as a failure without checking the websocket connection.

It seems like it would be better to be able to continue to use the websocket connection.

Thanks

darrachequesne commented 3 years ago

Closed due to inactivity, please reopen if needed.