aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/examples/http2-upload.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/examples/http2-upload.c b/docs/examples/http2-upload.c
index 6b91333fb..bca16c0d6 100644
--- a/docs/examples/http2-upload.c
+++ b/docs/examples/http2-upload.c
@@ -221,6 +221,11 @@ static void setup(CURL *hnd, int num, const char *upload)
curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYHOST, 0L);
+#if (CURLPIPE_MULTIPLEX > 0)
+ /* wait for pipe connection to confirm */
+ curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L);
+#endif
+
curl_hnd[num] = hnd;
}