Skip to content

Conversation

The-EDev
Copy link
Member

Basically what I did is I fixed the original problem with the one way switch, then added a macro that will terminate the connection instead of proceeding if the protocol isn't followed (the mask bit isn't 1).
I also added the unit tests that caused me to discover this problem in the first place.

closes #279

Copy link
Collaborator

@luca-schlecker luca-schlecker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, although I didn't specifically test WebSocket functionality.

@The-EDev
Copy link
Member Author

Considering the code is the same as if there was a connection error, I think it'll be fine (it's difficult to test when clients mask the messages by default)

@The-EDev The-EDev merged commit e87ec70 into master Nov 22, 2021
@The-EDev The-EDev deleted the ws_fix branch November 22, 2021 15:07
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 connection has one way switch with masking
2 participants