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

okhttp: ignore unknown HTTP/2 settings #3036

Merged
merged 1 commit into from
May 30, 2017

Conversation

ericgribkoff
Copy link
Contributor

Intended to address #3032.

This was addressed in OkHttp3 by square/okhttp#2299, but I'm fairly certain their fix still contains a bug - they parse the settings id as a Java short, so anything in the experimental range (such as gRPC C++ servers are using) is a negative number, and the linked pull request's use of break instead of continue results in an index out of bounds exception in Settings#set. I'll follow up on that with the OkHttp repo separately.

@ejona86 I'm not sure of the status of the code in okhttp/third_party - since this is "shaded" from OkHttp2, can we patch it, or do we need to move the modifications somehow out of the third_party/ subdirectory? As-is, I'm also not sure where to put tests for this, but just wanted to get the process started.

Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making the change directly like you are is fine.

@carl-mastrangelo
Copy link
Contributor

You might consider backporting this to 1.4

@ejona86 ejona86 added the TODO:backport PR needs to be backported. Removed after backport complete label May 26, 2017
@ericgribkoff ericgribkoff merged commit f52b4c1 into grpc:master May 30, 2017
@ejona86 ejona86 removed the TODO:backport PR needs to be backported. Removed after backport complete label Jun 1, 2017
@ejona86
Copy link
Member

ejona86 commented Jun 29, 2017

Backported to v1.4.x via #3043
Backported to v1.3.x via #3157

@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants