From 9f5dcab83d77b2331ed2716f901e5cb4a0c17529 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 1 Jun 2015 08:46:18 +0200 Subject: http2-upload.c: use PIPEWAIT for playing HTTP/2 better --- docs/examples/http2-upload.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/examples') 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; } -- cgit v1.2.3