Skip to content

Don't enable the hyper http1 feature now that hyper 0.14.2 is out #139

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

Closed
wants to merge 1 commit into from
Closed

Don't enable the hyper http1 feature now that hyper 0.14.2 is out #139

wants to merge 1 commit into from

Conversation

paolobarbolini
Copy link
Contributor

Starting from hyper 0.14.2 http connection types don't require a specific proto feature to be enabled in order to be accessed.

See hyperium/hyper#2377

Starting from hyper 0.14.2 http connection types don't
require a specific proto feature to be enabled in order to
be accessed.
@CryZe
Copy link
Contributor

CryZe commented Dec 29, 2020

Uhm, okay so this is all very weird. We always send the ALPN protocols h2 and http/1.1 which means the server is free to choose either, meaning that technically hyper-rustls requires hyper to support both these protocols.

I'm discussing this over in hyper-tls which has the same issue: hyperium/hyper-tls#85 (comment)

@paolobarbolini
Copy link
Contributor Author

paolobarbolini commented Dec 30, 2020

If ALPN is always handled then we are already doing it wrong, since we only enable http1

@CryZe
Copy link
Contributor

CryZe commented Dec 30, 2020

Yeah that's what I noticed as well. So this likely means that ALPN will need to be somewhat opt-in, which I'm honestly not liking that much as that will probably mean that a lot of people will completely miss that ALPN may need to be activated to get http2 support.

@djc
Copy link
Member

djc commented Sep 29, 2021

I think #144 effectively mitigates this, right?

@paolobarbolini
Copy link
Contributor Author

Right. Closing

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.

3 participants