From 55599fef7190dfe3270165d1e048da1d5d639b7d Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sun, 7 Jul 2019 12:19:54 +0100 Subject: [PATCH] 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. --- lib/roles/h2/http2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roles/h2/http2.c b/lib/roles/h2/http2.c index a953a02f1..d819a0f5c 100644 --- a/lib/roles/h2/http2.c +++ b/lib/roles/h2/http2.c @@ -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;