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 #3043

Merged

Conversation

ericgribkoff
Copy link
Contributor

Backport of #3036

@@ -301,7 +301,8 @@ private void readSettings(Handler handler, int length, byte flags, int streamId)
case 6: // SETTINGS_MAX_HEADER_LIST_SIZE
break; // Advisory only, so ignored.
default:
throw ioException("PROTOCOL_ERROR invalid settings id: %s", id);
// Implementations MUST ignore any unknown or unsupported identifier.
Copy link
Contributor

Choose a reason for hiding this comment

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

Optional: Maybe log it ?

Copy link
Contributor

@carl-mastrangelo carl-mastrangelo left a comment

Choose a reason for hiding this comment

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

LGTM,

Though you might want to log.

@ericgribkoff ericgribkoff merged commit ce17076 into grpc:v1.4.x May 31, 2017
@ericgribkoff ericgribkoff deleted the backport_ignore_unknown_settings branch May 31, 2017 22:14
@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.

2 participants