-
Notifications
You must be signed in to change notification settings - Fork 161
Add extension frame support. #476
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
Conversation
Specifically, the first two commits are the ones that need backporting. |
4571002
to
dcfcf34
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good on an initial skim, will review properly later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One suggestion about logging consistency, otherwise LGTM.
h2/connection.py
Outdated
""" | ||
# All we do here is log. | ||
self.config.logger.debug( | ||
"Received unknown extension frame (ID 0x%x)", frame.stream_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Elsewhere we log the stream ID as a %d
integer. Should we be consistent in the way we log?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrm, probably, yeah.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, I would probably lean towards doing logging in hex as you did it originally, but let’s make that a separate patch.
dcfcf34
to
04cf12d
Compare
Okay, LGTM. @Lukasa I’ll let you merge, so you can sort out backports and the like. |
Cool, thanks @alexwlchan! I'm going to try to write this in as a shell script that we can commit to the repo so that backporting gets a bit easier. |
This PR adds support for emitting events when we receive extension frames.
Resolves #435.
The first few commits in here should be backported to older versions of hyper-h2 to allow them to use the 5.0 release series of hyperframe if needed.