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

Make error codes smaller #851

Merged
merged 2 commits into from Oct 12, 2017
Merged

Make error codes smaller #851

merged 2 commits into from Oct 12, 2017

Conversation

martinthomson
Copy link
Member

See #723 for a full discussion.

Closes #211 (finally).

Copy link
Contributor

@MikeBishop MikeBishop left a comment

Choose a reason for hiding this comment

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

One apparent bug, otherwise fine.

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Reason Phrase Length (16) | [Reason Phrase (*)] ...
| Reason Phrase Length (*) ...
Copy link
Contributor

Choose a reason for hiding this comment

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

Two length fields, no value field.

application error codes are left to application protocols. Application protocol
error codes are used for the RST_STREAM ({{frame-rst-stream}}) and
APPLICATION_CLOSE ({{frame-application-close}}) frames.
Application protocol error codes are 16 bit unsigned integers, but the
Copy link
Contributor

Choose a reason for hiding this comment

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

"16-bit," no?

@martinthomson
Copy link
Member Author

Thanks Mike.

@janaiyengar janaiyengar merged commit 0bf810a into master Oct 12, 2017
@martinthomson martinthomson deleted the smaller-errors branch October 12, 2017 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants