Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hang on connect #1086

Open
dOhx opened this issue Oct 17, 2020 · 4 comments
Open

Hang on connect #1086

dOhx opened this issue Oct 17, 2020 · 4 comments

Comments

@dOhx
Copy link

dOhx commented Oct 17, 2020

Describe the bug
I use SSL, its fine all works. But after 2-5 connection attempts connect is hang.

To Reproduce
Steps to reproduce the behavior:

  1. When in Chrome refresh my wss is connecting
  2. after 2-5 connection attempts one from that is hang

Example application to reproduce the issue
ExampleChatServer, with SSL context.

Expected behavior
No connect hang.

Debug log
[WebSocketWorker-13] TRACE org.java_websocket.WebSocketImpl - process(8): (����a�) [WebSocketSelector-19] TRACE org.java_websocket.WebSocketImpl - send frame: Framedata{ optcode:TEXT, fin:true, rsv1:false, rsv2:false, rsv3:false, payloadlength:[pos:0, len:60], payload:org.java_websocket.WebSocketImpl@1c532ab1 has left the room!} [WebSocketSelector-19] TRACE org.java_websocket.drafts.Draft_6455 - afterEnconding(60): org.java_websocket.WebSocketImpl@1c532ab1 has left the room! [WebSocketSelector-19] TRACE org.java_websocket.WebSocketImpl - write(62): �<org.java_websocket.WebSocketImpl@1c532ab1 has left the room! org.java_websocket.WebSocketImpl@1c532ab1 has left the room! [WebSocketSelector-19] TRACE org.java_websocket.SSLSocketChannel2 - [WebSocketSelector-19] TRACE org.java_websocket.SSLSocketChannel2 -

Environment(please complete the following information):

Additional context
I must close the connection and reconnect, but its not THE solution. Sorry for missing informations, its my first report.

@marci4
Copy link
Collaborator

marci4 commented Oct 25, 2020

Should be a duplicate of #717

@soylomass
Copy link

Is this solved?

@tigrehuang
Copy link

tigrehuang commented Jan 4, 2023

Please try a different version of JRE. This is how I did when I found this issue. And please let me know if it doesn't work for you.

@BenedictLelanz
Copy link

This issue still persists with JRE 17 and also JRE 20. I try to open a WebSocket from the browser to the Java Server and all that happened is that the doAccept method in the WebSocket Server is invoked but neither on client side nor on server side the onOpen event is fired. Is there no solution for the WebSocketServer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants