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

Validate gRPC response protocol is not downgraded #600

Merged
merged 2 commits into from
Oct 22, 2019

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Oct 12, 2019

HttpClient sends HTTP/1.1 and HTTP/2 with ALPN negotiation, so a server could potentially start a HTTP/1.1 connection if it doesn't support HTTP/2.

Validate response is always HTTP/2.

@jtattermusch What does Grpc.Core do here? I'm guessing it would only ever allow HTTP/2.

@JunTaoLuo
Copy link
Contributor

ping @jtattermusch what does C Core do here?

@jtattermusch
Copy link
Contributor

jtattermusch commented Oct 16, 2019

@yashykt do you know the answer? (if not you, who does?)

@yashykt
Copy link
Member

yashykt commented Oct 16, 2019

gRPC does not work with HTTP/1.1. It would need HTTP/2. I don't remember the exact behavior from the server in case the client sends HTTP/1.1 but I am guessing that it would be something like a bad response.

@JamesNK JamesNK merged commit ff287dd into grpc:master Oct 22, 2019
@JamesNK JamesNK deleted the jamesnk/response-protocol-validation branch October 22, 2019 19:24
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.

4 participants