diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-05-26 18:17:32 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-05-26 18:17:32 +0300 |
commit | 3894027826cbc6688428d8d54e2debe25b1d0661 (patch) | |
tree | 69c3fa8140a365da5b138aa4519b154e2063c7b8 /src/testcurl/test_process_headers.c | |
parent | 710d79a2ea4647d73172ba9aa032a4055bea14a8 (diff) | |
download | libmicrohttpd-3894027826cbc6688428d8d54e2debe25b1d0661.tar.gz libmicrohttpd-3894027826cbc6688428d8d54e2debe25b1d0661.zip |
tests: properly setup CURL options
Diffstat (limited to 'src/testcurl/test_process_headers.c')
-rw-r--r-- | src/testcurl/test_process_headers.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/testcurl/test_process_headers.c b/src/testcurl/test_process_headers.c index 525ccfc8..a1237c78 100644 --- a/src/testcurl/test_process_headers.c +++ b/src/testcurl/test_process_headers.c | |||
@@ -188,7 +188,7 @@ testInternalGet () | |||
188 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 188 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
189 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 189 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
190 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 190 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
191 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 191 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
192 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 192 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
193 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 193 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
194 | if (oneone) | 194 | if (oneone) |
@@ -198,7 +198,7 @@ testInternalGet () | |||
198 | /* NOTE: use of CONNECTTIMEOUT without also | 198 | /* NOTE: use of CONNECTTIMEOUT without also |
199 | setting NOSIGNAL results in really weird | 199 | setting NOSIGNAL results in really weird |
200 | crashes on my system! */ | 200 | crashes on my system! */ |
201 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 201 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
202 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 202 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
203 | { | 203 | { |
204 | fprintf (stderr, | 204 | fprintf (stderr, |
@@ -256,7 +256,7 @@ testMultithreadedGet () | |||
256 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 256 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
257 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 257 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
258 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 258 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
259 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 259 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
260 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 260 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
261 | if (oneone) | 261 | if (oneone) |
262 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 262 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -266,7 +266,7 @@ testMultithreadedGet () | |||
266 | /* NOTE: use of CONNECTTIMEOUT without also | 266 | /* NOTE: use of CONNECTTIMEOUT without also |
267 | setting NOSIGNAL results in really weird | 267 | setting NOSIGNAL results in really weird |
268 | crashes on my system! */ | 268 | crashes on my system! */ |
269 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 269 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
270 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 270 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
271 | { | 271 | { |
272 | fprintf (stderr, | 272 | fprintf (stderr, |
@@ -325,7 +325,7 @@ testMultithreadedPoolGet () | |||
325 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 325 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
326 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 326 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
327 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 327 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
328 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 328 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
329 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 329 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
330 | if (oneone) | 330 | if (oneone) |
331 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 331 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -335,7 +335,7 @@ testMultithreadedPoolGet () | |||
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, |
@@ -408,7 +408,7 @@ testExternalGet () | |||
408 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); | 408 | curl_easy_setopt (c, CURLOPT_PORT, (long)port); |
409 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 409 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
410 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 410 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
411 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 411 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
412 | if (oneone) | 412 | if (oneone) |
413 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 413 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
414 | else | 414 | else |
@@ -418,7 +418,7 @@ testExternalGet () | |||
418 | /* NOTE: use of CONNECTTIMEOUT without also | 418 | /* NOTE: use of CONNECTTIMEOUT without also |
419 | setting NOSIGNAL results in really weird | 419 | setting NOSIGNAL results in really weird |
420 | crashes on my system! */ | 420 | crashes on my system! */ |
421 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 421 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
422 | 422 | ||
423 | 423 | ||
424 | multi = curl_multi_init (); | 424 | multi = curl_multi_init (); |