summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-06-01 08:46:18 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-06-01 08:46:18 +0200
commit9f5dcab83d77b2331ed2716f901e5cb4a0c17529 (patch)
treeecf21b11584091c3d77c08729b17cc33d5ed0a3d
parent41db5aed7a7b5941e5a884f8a452648e19e2098f (diff)
downloadgnurl-9f5dcab83d77b2331ed2716f901e5cb4a0c17529.tar.gz
gnurl-9f5dcab83d77b2331ed2716f901e5cb4a0c17529.tar.bz2
gnurl-9f5dcab83d77b2331ed2716f901e5cb4a0c17529.zip
http2-upload.c: use PIPEWAIT for playing HTTP/2 better
-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;
}