Blame SOURCES/0046-curl-7.61.1-h2-window-size.patch

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