doh: use PIPEWAIT when HTTP/2 is attempted

Closes #12214
This commit is contained in:
Stefan Eissing 2023-10-27 11:26:19 +02:00 committed by Daniel Stenberg
parent 2478cbbff2
commit 277486b6b4
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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 */