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

Conflicts between Alt-Svc and ALPN #72

Closed
MikeBishop opened this issue May 28, 2015 · 8 comments
Closed

Conflicts between Alt-Svc and ALPN #72

MikeBishop opened this issue May 28, 2015 · 8 comments
Labels

Comments

@MikeBishop
Copy link
Contributor

Alt-Svc tells me to use h2, so I open a TLS connection, and the server either doesn’t support ALPN or doesn’t select h2. What now? Weird corner cases ensue where I’m connected to something that may or may not be the alternate I was intending to reach. (Similar issues ensue attempting to connect using h2c -- does it mean a direct TCP connection to the specified port, or that the client should offer Upgrade? What if the server doesn't accept the Upgrade?)

It's simpler to just say TLS is the protocol and require ALPN support in 2.3 as well. Point me to a TLS-enabled endpoint, and the specific protocols we'll use will be negotiated in real-time.

However, this does pose a challenge if you wanted only HTTP/3 traffic going to your alternate.

@martinthomson
Copy link
Contributor

Yes, that's a bad sort of failure, but I don't think that it needs special handling. Any failure in establishing the alternative just results in falling back to the primary.

(BTW, h2c has to mean one thing, and I think that it's clear that this is Upgrade.)

@mnot mnot added the design label Jun 1, 2015
@mnot
Copy link
Member

mnot commented Jun 1, 2015

Maybe some security considerations text to the effect that the alternative isn't usable if it doesn't negotiate the advertised protocol.

@martinthomson
Copy link
Contributor

s/security considerations//; just text.

@mnot
Copy link
Member

mnot commented Jun 9, 2015

Discussed on list, add text.

@reschke
Copy link
Contributor

reschke commented Jul 20, 2015

in 2.4?

@mnot
Copy link
Member

mnot commented Jul 20, 2015

Makes sense to me.

@mnot
Copy link
Member

mnot commented Oct 5, 2015

@reschke do you need text to be proposed?

@reschke
Copy link
Contributor

reschke commented Oct 5, 2015

yes

reschke added a commit that referenced this issue Oct 7, 2015
Wrong protocol is connection failure (#72)
reschke added a commit that referenced this issue Oct 7, 2015
@reschke reschke closed this as completed Oct 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants