diff options
Diffstat (limited to 'src/testzzuf/test_get_chunked.c')
-rw-r--r-- | src/testzzuf/test_get_chunked.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/testzzuf/test_get_chunked.c b/src/testzzuf/test_get_chunked.c index 44828853..2a16202b 100644 --- a/src/testzzuf/test_get_chunked.c +++ b/src/testzzuf/test_get_chunked.c | |||
@@ -156,14 +156,14 @@ testInternalGet () | |||
156 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); | 156 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
157 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 157 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
158 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 158 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
159 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 159 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
160 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 160 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
161 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 161 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
162 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 162 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
163 | /* NOTE: use of CONNECTTIMEOUT without also | 163 | /* NOTE: use of CONNECTTIMEOUT without also |
164 | * setting NOSIGNAL results in really weird | 164 | * setting NOSIGNAL results in really weird |
165 | * crashes on my system! */ | 165 | * crashes on my system! */ |
166 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 166 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
167 | curl_easy_perform (c); | 167 | curl_easy_perform (c); |
168 | curl_easy_cleanup (c); | 168 | curl_easy_cleanup (c); |
169 | } | 169 | } |
@@ -197,14 +197,14 @@ testMultithreadedGet () | |||
197 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); | 197 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
198 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 198 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
199 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 199 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
200 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 200 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
201 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 201 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
202 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 202 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
203 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 203 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
204 | /* NOTE: use of CONNECTTIMEOUT without also | 204 | /* NOTE: use of CONNECTTIMEOUT without also |
205 | * setting NOSIGNAL results in really weird | 205 | * setting NOSIGNAL results in really weird |
206 | * crashes on my system! */ | 206 | * crashes on my system! */ |
207 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 207 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
208 | curl_easy_perform (c); | 208 | curl_easy_perform (c); |
209 | curl_easy_cleanup (c); | 209 | curl_easy_cleanup (c); |
210 | } | 210 | } |
@@ -255,14 +255,14 @@ testExternalGet () | |||
255 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); | 255 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
256 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 256 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
257 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 257 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
258 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 258 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
259 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 259 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
260 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 260 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
261 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 261 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
262 | /* NOTE: use of CONNECTTIMEOUT without also | 262 | /* NOTE: use of CONNECTTIMEOUT without also |
263 | * setting NOSIGNAL results in really weird | 263 | * setting NOSIGNAL results in really weird |
264 | * crashes on my system! */ | 264 | * crashes on my system! */ |
265 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 265 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
266 | mret = curl_multi_add_handle (multi, c); | 266 | mret = curl_multi_add_handle (multi, c); |
267 | if (mret != CURLM_OK) | 267 | if (mret != CURLM_OK) |
268 | { | 268 | { |