]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
doh: use PIPEWAIT when HTTP/2 is attempted
authorStefan Eissing <stefan@eissing.org>
Fri, 27 Oct 2023 09:26:19 +0000 (11:26 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 27 Oct 2023 15:13:24 +0000 (17:13 +0200)
Closes #12214

lib/doh.c

index d0ad0d86bb2d9df4db440d522c635a3b77300515..7aca47f9b3e69e1fe93bfa22552dd2538cf41fb8 100644 (file)
--- a/lib/doh.c
+++ b/lib/doh.c
@@ -252,6 +252,7 @@ static CURLcode dohprobe(struct Curl_easy *data,
     ERROR_CHECK_SETOPT(CURLOPT_HTTPHEADER, headers);
 #ifdef USE_HTTP2
     ERROR_CHECK_SETOPT(CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2TLS);
+    ERROR_CHECK_SETOPT(CURLOPT_PIPEWAIT, 1L);
 #endif
 #ifndef CURLDEBUG
     /* enforce HTTPS if not debug */