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

[FIXED] Websocket: deadlock on authentication failure #926

Merged
merged 1 commit into from Mar 14, 2022
Merged

Conversation

kozlovic
Copy link
Member

This was due to the fact that server sends a websocket CLOSE protocol,
to which the library tried to respond to, but since it was done during
the "connect" handshake under the connection lock, this caused a
deadlock.

Resolves #925

Signed-off-by: Ivan Kozlovic ivan@synadia.com

This was due to the fact that server sends a websocket CLOSE protocol,
to which the library tried to respond to, but since it was done during
the "connect" handshake under the connection lock, this caused a
deadlock.

Resolves #925

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@kozlovic kozlovic requested a review from wallyqs March 14, 2022 20:59
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 85.155% when pulling 16beecb on ws_deadlock into 8045a50 on main.

@kozlovic kozlovic merged commit e483e46 into main Mar 14, 2022
@kozlovic kozlovic deleted the ws_deadlock branch March 14, 2022 22:37
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

Successfully merging this pull request may close these issues.

Websocket without auth will hang forever
3 participants