From: Daniel Stenberg Date: Mon, 1 Jun 2015 06:46:18 +0000 (+0200) Subject: http2-upload.c: use PIPEWAIT for playing HTTP/2 better X-Git-Tag: curl-7_43_0~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f5dcab83d77b2331ed2716f901e5cb4a0c17529;p=thirdparty%2Fcurl.git http2-upload.c: use PIPEWAIT for playing HTTP/2 better --- diff --git a/docs/examples/http2-upload.c b/docs/examples/http2-upload.c index 6b91333fb0..bca16c0d6d 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; }