File: test_get_close_for_curl_8.16.patch

package info (click to toggle)
libmicrohttpd 1.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,624 kB
  • sloc: ansic: 107,057; sh: 5,357; makefile: 2,131; pascal: 1,591; sed: 16
file content (31 lines) | stat: -rw-r--r-- 1,271 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From b03f13f32c2547b050f88e0a5ad758734c9be96c Mon Sep 17 00:00:00 2001
From: "Evgeny Grin (Karlson2k)" <k2k@narod.ru>
Date: Sun, 21 Sep 2025 16:20:49 +0200
Subject: test_get_close_keep_alive: a minimal fix for curl 8.16

curl 8.16 is silently dropping second 'Connection: ' header from
requests, making some of the checks in the test unreliable.

Origin: upstream, https://git.gnunet.org/libmicrohttpd.git/patch/?id=b03f13f32c2547b050f88e0a5ad758734c9be96c
Bug: https://bugs.gnunet.org/view.php?id=10403
Bug-Debian: https://bugs.debian.org/1115154
---
 src/testcurl/test_get_close_keep_alive.c | 5 +++++
 1 file changed, 5 insertions(+)

Index: git/src/testcurl/test_get_close_keep_alive.c
===================================================================
--- git.orig/src/testcurl/test_get_close_keep_alive.c
+++ git/src/testcurl/test_get_close_keep_alive.c
@@ -896,6 +896,11 @@ performTestQueries (struct MHD_Daemon *d
     if ((! ! res_close) != (! ! conn_close))
       continue; /* Another mode is in test currently */
 
+#if CURL_AT_LEAST_VERSION (8,16,0)
+    if ((f_client_close) && (f_client_k_alive))
+      continue;
+#endif /* CURL >= 8.16.0 */
+
     mhd_add_close = f_mhd_close;
     mhd_set_10_cmptbl = f_10_cmptbl;
     mhd_set_10_server = f_10_server;