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

Close websocket with 1011 on internal error (1006 is a client-only code) #112

Merged
merged 1 commit into from
Jul 8, 2023

Conversation

samsamoa
Copy link
Contributor

See https://www.rfc-editor.org/rfc/rfc6455.html ->

1006 is a reserved value and MUST NOT be set as a status code in a
      Close control frame by an endpoint.

This issue is exacerbated by what may be a bug in wsproto, where a 1006 code is turned into a 1000 (success) code.

@samsamoa
Copy link
Contributor Author

Related wsproto issue: python-hyper/wsproto#182

@pgjones
Copy link
Owner

pgjones commented Jul 8, 2023

Looks good thanks. I'll take a look at wsproto shortly.

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.

None yet

2 participants