From f9d79f838821e980036d12392da14c4dd187f4ac Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Thu, 1 May 2025 09:07:59 -0500 Subject: [PATCH] Add patch to hopefully fix http2-body-size-test timeouts Related: RHEL-65395 --- http2-body-size-test-timeout.patch | 30 ++++++++++++++++++++++++++++++ libsoup3.spec | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 http2-body-size-test-timeout.patch diff --git a/http2-body-size-test-timeout.patch b/http2-body-size-test-timeout.patch new file mode 100644 index 0000000..b031b18 --- /dev/null +++ b/http2-body-size-test-timeout.patch @@ -0,0 +1,30 @@ +From a2eaa4aab2b62976118a4a62f5041eead5c90a02 Mon Sep 17 00:00:00 2001 +From: Michael Catanzaro +Date: Thu, 1 May 2025 08:57:46 -0500 +Subject: [PATCH] Reduce runtime of http2-body-size test + +This test is *really* slow and I think it would be excessive to increase +the test timeout any further, so let's test less data. + +Fixes #444 +Obsoletes: !309 +--- + tests/http2-body-stream-test.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/http2-body-stream-test.c b/tests/http2-body-stream-test.c +index 540beb3b..c53f22bc 100644 +--- a/tests/http2-body-stream-test.c ++++ b/tests/http2-body-stream-test.c +@@ -24,7 +24,7 @@ static void + do_large_data_test (void) + { + #define CHUNK_SIZE ((gsize)1024 * 1024 * 512) // 512 MiB +-#define TEST_SIZE (CHUNK_SIZE * 20) // 10 GiB ++#define TEST_SIZE (CHUNK_SIZE * 4) // 2 GiB + + GInputStream *stream = soup_body_input_stream_http2_new (); + SoupBodyInputStreamHttp2 *mem_stream = SOUP_BODY_INPUT_STREAM_HTTP2 (stream); +-- +GitLab + diff --git a/libsoup3.spec b/libsoup3.spec index 75ae93b..baf94e8 100644 --- a/libsoup3.spec +++ b/libsoup3.spec @@ -13,6 +13,8 @@ Source0: https://download.gnome.org/sources/libsoup/3.6/libsoup-%{version}.tar.x Patch: test-timeouts.patch # https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/454 Patch: server-test-timeout.patch +# https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/455 +Patch: http2-body-size-test-timeout.patch # https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/450 Patch: CVE-2025-32914.patch