1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

h2: SETTINGS: allow 16M-1 peer max frame size

We only allow 8M-1 when we should allow 16M-1 without blowing a
PROTOCOL ERROR.
This commit is contained in:
Andy Green 2019-07-07 12:19:54 +01:00
parent cbd58fa458
commit 55599fef71

View file

@ -490,7 +490,7 @@ lws_h2_settings(struct lws *wsi, struct http2_settings *settings,
"Frame size < initial");
return 1;
}
if (b > 0x007fffff) {
if (b > 0x00ffffff) {
lws_h2_goaway(nwsi, H2_ERR_PROTOCOL_ERROR,
"Settings Frame size above max");
return 1;