aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_get_chunked.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_get_chunked.c')
-rw-r--r--src/testcurl/test_get_chunked.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/testcurl/test_get_chunked.c b/src/testcurl/test_get_chunked.c
index 66a9fbde..c7be5c83 100644
--- a/src/testcurl/test_get_chunked.c
+++ b/src/testcurl/test_get_chunked.c
@@ -213,14 +213,14 @@ testInternalGet ()
213 curl_easy_setopt (c, CURLOPT_PORT, (long)port); 213 curl_easy_setopt (c, CURLOPT_PORT, (long)port);
214 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 214 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
215 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 215 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
216 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 216 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L);
217 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); 217 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L);
218 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); 218 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L);
219 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 219 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
220 /* NOTE: use of CONNECTTIMEOUT without also 220 /* NOTE: use of CONNECTTIMEOUT without also
221 * setting NOSIGNAL results in really weird 221 * setting NOSIGNAL results in really weird
222 * crashes on my system! */ 222 * crashes on my system! */
223 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 223 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L);
224 if (CURLE_OK != (errornum = curl_easy_perform (c))) 224 if (CURLE_OK != (errornum = curl_easy_perform (c)))
225 { 225 {
226 fprintf (stderr, 226 fprintf (stderr,
@@ -270,14 +270,14 @@ testMultithreadedGet ()
270 curl_easy_setopt (c, CURLOPT_PORT, (long)port); 270 curl_easy_setopt (c, CURLOPT_PORT, (long)port);
271 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 271 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
272 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 272 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
273 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 273 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L);
274 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); 274 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L);
275 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 275 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
276 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); 276 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L);
277 /* NOTE: use of CONNECTTIMEOUT without also 277 /* NOTE: use of CONNECTTIMEOUT without also
278 * setting NOSIGNAL results in really weird 278 * setting NOSIGNAL results in really weird
279 * crashes on my system! */ 279 * crashes on my system! */
280 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 280 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L);
281 if (CURLE_OK != (errornum = curl_easy_perform (c))) 281 if (CURLE_OK != (errornum = curl_easy_perform (c)))
282 { 282 {
283 fprintf (stderr, 283 fprintf (stderr,
@@ -328,14 +328,14 @@ testMultithreadedPoolGet ()
328 curl_easy_setopt (c, CURLOPT_PORT, (long)port); 328 curl_easy_setopt (c, CURLOPT_PORT, (long)port);
329 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 329 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
330 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 330 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
331 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 331 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L);
332 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); 332 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L);
333 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 333 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
334 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); 334 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L);
335 /* NOTE: use of CONNECTTIMEOUT without also 335 /* NOTE: use of CONNECTTIMEOUT without also
336 * setting NOSIGNAL results in really weird 336 * setting NOSIGNAL results in really weird
337 * crashes on my system! */ 337 * crashes on my system! */
338 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 338 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L);
339 if (CURLE_OK != (errornum = curl_easy_perform (c))) 339 if (CURLE_OK != (errornum = curl_easy_perform (c)))
340 { 340 {
341 fprintf (stderr, 341 fprintf (stderr,
@@ -400,14 +400,14 @@ testExternalGet ()
400 curl_easy_setopt (c, CURLOPT_PORT, (long)port); 400 curl_easy_setopt (c, CURLOPT_PORT, (long)port);
401 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 401 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
402 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 402 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
403 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 403 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L);
404 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 404 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
405 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); 405 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L);
406 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 5L); 406 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 5L);
407 /* NOTE: use of CONNECTTIMEOUT without also 407 /* NOTE: use of CONNECTTIMEOUT without also
408 * setting NOSIGNAL results in really weird 408 * setting NOSIGNAL results in really weird
409 * crashes on my system! */ 409 * crashes on my system! */
410 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 410 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L);
411 411
412 412
413 multi = curl_multi_init (); 413 multi = curl_multi_init ();