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

change ws.Header length int64 to uint64 #209

Open
someview opened this issue Feb 16, 2025 · 2 comments
Open

change ws.Header length int64 to uint64 #209

someview opened this issue Feb 16, 2025 · 2 comments

Comments

@someview
Copy link

according rfc6455 chapter 5, payload length is uint16 or uint64, not int64.

@cristaloleg
Copy link
Collaborator

Hey, are you referring to:

If 127, the
following 8 bytes interpreted as a 64-bit unsigned integer (the
most significant bit MUST be 0) are the payload length

?

CC: @gobwas

@someview
Copy link
Author

Hey, are you referring to:

If 127, the
following 8 bytes interpreted as a 64-bit unsigned integer (the
most significant bit MUST be 0) are the payload length

?

CC: @gobwas

You are right.

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

No branches or pull requests

2 participants