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

fix: always send mask from the client in ping/pong #64

Closed
wants to merge 1 commit into from

Conversation

crackcomm
Copy link

Currently ping/pong frames from the client have no mask if no application data is set.

Mask: 1 bit

Defines whether the "Payload data" is masked. If set to 1, a
masking key is present in masking-key, and this is used to unmask
the "Payload data" as per Section 5.3.
All frames sent from client to server have this bit set to 1.

For example gorilla/websocket will reject these pings with an error bad MASK.

@anmonteiro
Copy link
Owner

can you test my alternative fix in #69?

@anmonteiro anmonteiro closed this Aug 3, 2024
@crackcomm
Copy link
Author

can you test my alternative fix in #69?

It works as well, thanks.

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.

2 participants