This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java websocket client lost connection  RSS feed

 
Jens Mustermann
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem with my Websockets Connection, the server sends data permanently during the rush hour and outside the rush hour there is also a good data stream.

But after around 80 seconds the client don't receive data anymore onClose is not called and I can start the connection manual again

I am using tyrus-standalone-client 1.13.1 https://repo1.maven.org/maven2/org/glassfish/tyrus/bundles/tyrus-standalone-client/1.13.1/

I already played around with setDefaultMaxSessionIdleTimeout and setAsyncSendTimeout but no success.



And it seems that it is working only with an empty SID if I create a random SID I get an unknown error if I request the url with an empty SID I get a response:

0{"sid":"rgHXKjxkz9fJufoeAE8R","upgrades":[],"pingInterval":25000,"pingTimeout":60000}

if I request the URL with this SID I get again the unknown error

Any ideas ?
 
Jens Mustermann
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used an other socket.io client, you can delete this thread
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!