Skip to content

Commit 8fc367e

Browse files
ericgribkoffejona86
authored andcommitted
okhttp: ignore unknown HTTP/2 settings
1 parent 2a6ae96 commit 8fc367e

File tree

1 file changed

+2
-1
lines changed
  • okhttp/third_party/okhttp/java/io/grpc/okhttp/internal/framed

1 file changed

+2
-1
lines changed

okhttp/third_party/okhttp/java/io/grpc/okhttp/internal/framed/Http2.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ private void readSettings(Handler handler, int length, byte flags, int streamId)
301301
case 6: // SETTINGS_MAX_HEADER_LIST_SIZE
302302
break; // Advisory only, so ignored.
303303
default:
304-
throw ioException("PROTOCOL_ERROR invalid settings id: %s", id);
304+
// Implementations MUST ignore any unknown or unsupported identifier.
305+
continue;
305306
}
306307
settings.set(id, 0, value);
307308
}

0 commit comments

Comments
 (0)