Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(http2): fix internals of HTTP/2 CONNECT upgrades #3967

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

Open
seanmonstar wants to merge 1 commit into master
base: master
Choose a base branch
Loading
from push-nvrlowqkoptx

Conversation

@seanmonstar
Copy link
Member

@seanmonstar seanmonstar commented Oct 24, 2025

This refactors the way hyper handles HTTP/2 CONNECT / Extended CONNECT. Before, an uninhabited enum was used to try to prevent sending of the Buf type once the STREAM had been upgraded. However, the way it was originally written was incorrect, and will eventually have compilation issues.

The change here is to spawn an extra task and use a channel to bridge the IO operations of the Upgraded object to be Cursor buffers in the new task.

ref: rust-lang/rust#147588
Closes #3966

This refactors the way hyper handles HTTP/2 CONNECT / Extended CONNECT. Before,
an uninhabited enum was used to try to prevent sending of the `Buf` type once
the STREAM had been upgraded. However, the way it was originally written was
incorrect, and will eventually have compilation issues.
The change here is to spawn an extra task and use a channel to bridge the IO
operations of the `Upgraded` object to be `Cursor` buffers in the new task.
ref: rust-lang/rust#147588 
Copy link
Member Author

@nox you originally implemented this, I presume because you needed it in an application. Would you be able to take a look, or even try the branch in your app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@nox nox Awaiting requested review from nox

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

HTTP/2 Upgraded wrongly uses a transparent uninhabited type

2 participants

AltStyle によって変換されたページ (->オリジナル) /