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

WebSocket: error: 1002: Client MUST mask all frames (RFC-6455: Section 5.1) #502

Closed
rana opened this issue Jan 27, 2020 · 1 comment
Closed

Comments

@rana
Copy link

rana commented Jan 27, 2020

Julia 1.3.1
HTTP.jl 0.8.8
MbedTLS.jl 0.7.0

Using a WebSocket.
This error gets logged when the connection is closed.
I looked into packet capture session and saw that the WebSocket close frame communication from the Julia side was missing a mask, as the error indicates. Seemingly harmless except for the log message makes me wonder what if anything is wrong.

┌ Error: HTTP.WebSockets.WebSocketError(1002, "Client MUST mask all frames (RFC-6455: Section 5.1)")
@quinnj
Copy link
Member

quinnj commented Jun 11, 2022

Yep, the old code wasn't masking the CLOSE frame that was sent when a connection was closed. This has been fixed on HTTP#master.

@quinnj quinnj closed this as completed Jun 11, 2022
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

2 participants