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

Support plain (non-SSL) connections #17

Open
ronkorving opened this issue Aug 11, 2015 · 7 comments
Open

Support plain (non-SSL) connections #17

ronkorving opened this issue Aug 11, 2015 · 7 comments

Comments

@ronkorving
Copy link

As discussed on Twitter, this is a remaining TODO for this module.
{ plain: true, ssl: false } is documented, but doesn't seem to do anything.

Reference: https://httpwg.github.io/specs/rfc7540.html#discover-http

@ronkorving
Copy link
Author

So, @indutny, you mentioned the challenge is to implement upgrade response/request. I'm confused how HTTP/2 can even work without it, but can't find anything in the codebase to deal with upgrade requests. Does that mean that generally clients that support HTTP/2 will downgrade to HTTP/1.1 (instead of upgrading)?

Keep in mind, I'm new to HTTP/2. But am willing to give this a shot if nobody else will :)

@indutny
Copy link
Collaborator

indutny commented Sep 7, 2015

@ronkorving it usually works on top of TLS, and there is ALPN TLS extension to negotiate the protocol ahead of time.

@ronkorving
Copy link
Author

Got it, thanks. So it's for non-encrypted connections where UPGRADE becomes the method?

@indutny
Copy link
Collaborator

indutny commented Sep 7, 2015

Yes, exactly!

@ronkorving
Copy link
Author

Unfortunate that not a single browser seems to send Upgrade: h2c. Or am I doing something wrong here? I also tried returning an Alt-Svc: h2c=":8080" header as described here to advise that I support HTTP2, but it doesn't seem to have any effect.

@indutny
Copy link
Collaborator

indutny commented Sep 8, 2015

Indeed. I can't find any reference of h2c in the chromium's source code. This is very sad.

@ronkorving
Copy link
Author

:( looks like for now I'm screwed then. My Raspberry Pi will either have to put up with encrypting streams of video, or I need to give up on HTTP2 (which I need, because I run into browser connection limits otherwise)... Sigh :(

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

No branches or pull requests

2 participants