diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-06-01 08:46:18 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-06-01 08:46:18 +0200 |
commit | 9f5dcab83d77b2331ed2716f901e5cb4a0c17529 (patch) | |
tree | ecf21b11584091c3d77c08729b17cc33d5ed0a3d /docs | |
parent | 41db5aed7a7b5941e5a884f8a452648e19e2098f (diff) |
http2-upload.c: use PIPEWAIT for playing HTTP/2 better
Diffstat (limited to 'docs')
-rw-r--r-- | docs/examples/http2-upload.c | 5 |
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; } |