Skip to content

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

Merged
pgjones merged 1 commit into
pgjones:mainfrom
samsamoa:websocket-internal-error
Jul 8, 2023
Merged

Close websocket with 1011 on internal error (1006 is a client-only code)#112
pgjones merged 1 commit into
pgjones:mainfrom
samsamoa:websocket-internal-error

Conversation

@samsamoa

Copy link
Copy Markdown
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
Copy Markdown
ContributorAuthor

Related wsproto issue: python-hyper/wsproto#182

@pgjones

Copy link
Copy Markdown
Owner

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

Sign up for freeto 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

@samsamoa@pgjones