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

Browser-role outbound websocket threading issue #30

Open
vladimirralev opened this issue Nov 17, 2017 · 0 comments
Open

Browser-role outbound websocket threading issue #30

vladimirralev opened this issue Nov 17, 2017 · 0 comments
Assignees

Comments

@vladimirralev
Copy link
Collaborator

javax.net.ssl.SSLException: Received fatal alert: handshake_failure
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1666)
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1634)
at sun.security.ssl.SSLEngineImpl.recvAlert(SSLEngineImpl.java:1800)
at sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:1083)
at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:907)
at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:781)
at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
at gov.nist.javax.sip.stack.SSLStateMachine.unwrap(SSLStateMachine.java:303)
at gov.nist.javax.sip.stack.SSLStateMachine.unwrap(SSLStateMachine.java:244)
at gov.nist.javax.sip.stack.NioTlsWebSocketMessageChannel.addBytes(NioTlsWebSocketMessageChannel.java:282)
at gov.nist.javax.sip.stack.NioTcpMessageChannel.readChannel(NioTcpMessageChannel.java:121)
at gov.nist.javax.sip.stack.NioTcpMessageProcessor$ProcessorTask.read(NioTcpMessageProcessor.java:154)
at gov.nist.javax.sip.stack.NioTcpMessageProcessor$ProcessorTask.run(NioTcpMessageProcessor.java:344)
at java.lang.Thread.run(Thread.java:745)

Registering to a server concurrently can start handshaking multiple times. We must make sure handshake is complete before allowing concurrency.

@vladimirralev vladimirralev self-assigned this Nov 17, 2017
vladimirralev added a commit to vladimirralev/jsip that referenced this issue Nov 17, 2017
vladimirralev added a commit that referenced this issue Jan 28, 2018
kpouer pushed a commit to kpouer/restcomm-jain-sip that referenced this issue Dec 28, 2022
(cherry picked from commit 6a6df8d10a534fb14d54ea377a4e48db8c1725e8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant