1d6023
From 4bbd1947aeb26d5dbcddbb058652e0e64771b71d Mon Sep 17 00:00:00 2001
1d6023
From: Kamil Dudka <kdudka@redhat.com>
1d6023
Date: Mon, 6 Feb 2023 17:46:36 +0100
1d6023
Subject: [PATCH] h2: lower initial window size to 32 MiB
1d6023
1d6023
Cherry-picked from upstream commit
1d6023
15f51474c837679c0b79825c23356ac681ffabde which was focused on paused
1d6023
transfers but required an update of nghttp2 to work properly.
1d6023
1d6023
Bug: https://bugzilla.redhat.com/2166254
1d6023
---
1d6023
 lib/http2.c         | 2 +-
1d6023
 tests/data/test1800 | 2 +-
1d6023
 2 files changed, 2 insertions(+), 2 deletions(-)
1d6023
1d6023
diff --git a/lib/http2.c b/lib/http2.c
1d6023
index 3071097..1fd2233 100644
1d6023
--- a/lib/http2.c
1d6023
+++ b/lib/http2.c
1d6023
@@ -63,7 +63,7 @@
1d6023
 #define NGHTTP2_HAS_SET_LOCAL_WINDOW_SIZE 1
1d6023
 #endif
1d6023
 
1d6023
-#define HTTP2_HUGE_WINDOW_SIZE (1 << 30)
1d6023
+#define HTTP2_HUGE_WINDOW_SIZE (32 * 1024 * 1024) /* 32 MB */
1d6023
 
1d6023
 #ifdef DEBUG_HTTP2
1d6023
 #define H2BUGF(x) x
1d6023
diff --git a/tests/data/test1800 b/tests/data/test1800
1d6023
index 0110184..c308c99 100644
1d6023
--- a/tests/data/test1800
1d6023
+++ b/tests/data/test1800
1d6023
@@ -48,7 +48,7 @@ Host: %HOSTIP:%HTTPPORT
1d6023
 Accept: */*
1d6023
 Connection: Upgrade, HTTP2-Settings
1d6023
 Upgrade: %H2CVER
1d6023
-HTTP2-Settings: AAMAAABkAARAAAAAAAIAAAAA
1d6023
+HTTP2-Settings: AAMAAABkAAQCAAAAAAIAAAAA
1d6023
 
1d6023
 </protocol>
1d6023
 </verify>
1d6023
-- 
1d6023
2.39.1
1d6023