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

Use 1000 as the default close code instead of 1005 #62

Merged
merged 1 commit into from May 4, 2023

Conversation

plicease
Copy link
Member

@plicease plicease commented May 3, 2023

https://www.rfc-editor.org/rfc/rfc6455.html#section-7.4.1

1000

  1000 indicates a normal closure, meaning that the purpose for
  which the connection was established has been fulfilled.

...

1005

  1005 is a reserved value and MUST NOT be set as a status code in a
  Close control frame by an endpoint.  It is designated for use in
  applications expecting a status code to indicate that no status
  code was actually present.

https://www.rfc-editor.org/rfc/rfc6455.html#section-7.4.1

   1000

      1000 indicates a normal closure, meaning that the purpose for
      which the connection was established has been fulfilled.

...

   1005

      1005 is a reserved value and MUST NOT be set as a status code in a
      Close control frame by an endpoint.  It is designated for use in
      applications expecting a status code to indicate that no status
      code was actually present.
@plicease plicease merged commit 77d4e4f into main May 4, 2023
21 checks passed
@plicease plicease deleted the graham/fix-close-code branch May 4, 2023 16:27
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

1 participant