diff --git a/okhttp/third_party/okhttp/java/io/grpc/okhttp/internal/framed/Http2.java b/okhttp/third_party/okhttp/java/io/grpc/okhttp/internal/framed/Http2.java index 0ad535fab77..786c7a4a4b1 100644 --- a/okhttp/third_party/okhttp/java/io/grpc/okhttp/internal/framed/Http2.java +++ b/okhttp/third_party/okhttp/java/io/grpc/okhttp/internal/framed/Http2.java @@ -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. + continue; } settings.set(id, 0, value); }