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

Ignore 1xx frames #521

Merged
merged 1 commit into from
Feb 25, 2021
Merged

Ignore 1xx frames #521

merged 1 commit into from
Feb 25, 2021

Conversation

kornelski
Copy link
Contributor

Fixes #515

This ignores (drops) header frames when the status is 1xx.

Currently it allows multiple 1xx responses in a row. I couldn't find whether this is forbidden, but I've left it allowed, as I can imagine 103 early hints being followed by 100 continue.

There's no API to retrieve the data from the 1xx frames. Such API could look similar to push promises, but the existing push promise implementation is non-trivial, so I'll leave it for later.

@seanmonstar
Copy link
Member

There's no API to retrieve the data from the 1xx frames.

What do you mean with this? Just that currently this simply ignores them, without a public API to inspect that a 1xx response was received?

@kornelski
Copy link
Contributor Author

kornelski commented Feb 19, 2021

Yes. The client has no way of getting headers of the 1xx-status frames (#167). This change is necessary to make h2 work with servers that send 103 Early Hints, but not sufficient yet for clients to make use of these hints.

@inikulin
Copy link

@seanmonstar sorry for poking you, but is any additional work required on the PR?

Copy link
Member

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

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

Cool, I think this looks good to start!

@seanmonstar seanmonstar merged commit 89d91b0 into hyperium:master Feb 25, 2021
@kornelski kornelski deleted the earlyhints branch February 25, 2021 18:15
@robjtede robjtede mentioned this pull request Feb 27, 2021
3 tasks
BenxiangGe pushed a commit to BenxiangGe/h2 that referenced this pull request Jul 26, 2021
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.

Ignore 1xx frames
3 participants