From adbe2352ac78e7e82cd796e9c05bdab7deb000cf Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sat, 4 Jun 2022 22:11:50 -0400 Subject: [PATCH] OPTIM/MINOR: h2_settings_initial_window_size default 64k change from RFC 7540 default 65535 (64k-1) avoid some degenerative WINDOW_UPDATE behaviors in the wild https://github.com/nghttp2/nghttp2/issues/1722 --- src/mux_h2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mux_h2.c b/src/mux_h2.c index bdd47f5555a4..948757a02d73 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -518,7 +518,7 @@ DECLARE_STATIC_POOL(pool_head_h2s, "h2s", sizeof(struct h2s)); /* a few settings from the global section */ static int h2_settings_header_table_size = 4096; /* initial value */ -static int h2_settings_initial_window_size = 65535; /* initial value */ +static int h2_settings_initial_window_size = 65536; /* initial value */ static unsigned int h2_settings_max_concurrent_streams = 100; static int h2_settings_max_frame_size = 0; /* unset */