diff options
27 files changed, 213 insertions, 206 deletions
diff --git a/src/examples/chunked_example.c b/src/examples/chunked_example.c index 9bf73e34..26dacd3b 100644 --- a/src/examples/chunked_example.c +++ b/src/examples/chunked_example.c | |||
@@ -162,11 +162,11 @@ main (int argc, char *const *argv) | |||
162 | "Port must be a number between 1 and 65535\n"); | 162 | "Port must be a number between 1 and 65535\n"); |
163 | return 1; | 163 | return 1; |
164 | } | 164 | } |
165 | d = MHD_start_daemon (// MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, | 165 | d = MHD_start_daemon (/* MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, */ |
166 | MHD_USE_AUTO | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, | 166 | MHD_USE_AUTO | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, |
167 | // MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, | 167 | /* MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, */ |
168 | // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, | 168 | /* MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, */ |
169 | // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, | 169 | /* MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, */ |
170 | (uint16_t) port, | 170 | (uint16_t) port, |
171 | NULL, NULL, | 171 | NULL, NULL, |
172 | &ahc_echo, NULL, | 172 | &ahc_echo, NULL, |
diff --git a/src/examples/https_fileserver_example.c b/src/examples/https_fileserver_example.c index 818c8d55..09938fcf 100644 --- a/src/examples/https_fileserver_example.c +++ b/src/examples/https_fileserver_example.c | |||
@@ -43,7 +43,7 @@ | |||
43 | #define BUF_SIZE 1024 | 43 | #define BUF_SIZE 1024 |
44 | #define MAX_URL_LEN 255 | 44 | #define MAX_URL_LEN 255 |
45 | 45 | ||
46 | // TODO remove if unused | 46 | /* TODO remove if unused */ |
47 | #define CAFILE "ca.pem" | 47 | #define CAFILE "ca.pem" |
48 | #define CRLFILE "crl.pem" | 48 | #define CRLFILE "crl.pem" |
49 | 49 | ||
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c index 3a4b7e1b..18ba625d 100644 --- a/src/microhttpd/response.c +++ b/src/microhttpd/response.c | |||
@@ -208,8 +208,9 @@ MHD_get_response_headers (struct MHD_Response *response, | |||
208 | void *iterator_cls) | 208 | void *iterator_cls) |
209 | { | 209 | { |
210 | int numHeaders = 0; | 210 | int numHeaders = 0; |
211 | struct MHD_HTTP_Header *pos; | ||
211 | 212 | ||
212 | for (struct MHD_HTTP_Header *pos = response->first_header; | 213 | for (pos = response->first_header; |
213 | NULL != pos; | 214 | NULL != pos; |
214 | pos = pos->next) | 215 | pos = pos->next) |
215 | { | 216 | { |
@@ -237,9 +238,11 @@ const char * | |||
237 | MHD_get_response_header (struct MHD_Response *response, | 238 | MHD_get_response_header (struct MHD_Response *response, |
238 | const char *key) | 239 | const char *key) |
239 | { | 240 | { |
241 | struct MHD_HTTP_Header *pos; | ||
242 | |||
240 | if (NULL == key) | 243 | if (NULL == key) |
241 | return NULL; | 244 | return NULL; |
242 | for (struct MHD_HTTP_Header *pos = response->first_header; | 245 | for (pos = response->first_header; |
243 | NULL != pos; | 246 | NULL != pos; |
244 | pos = pos->next) | 247 | pos = pos->next) |
245 | { | 248 | { |
@@ -269,13 +272,15 @@ MHD_check_response_header_token_ci (const struct MHD_Response *response, | |||
269 | const char *token, | 272 | const char *token, |
270 | size_t token_len) | 273 | size_t token_len) |
271 | { | 274 | { |
275 | struct MHD_HTTP_Header *pos; | ||
276 | |||
272 | if ( (NULL == key) || | 277 | if ( (NULL == key) || |
273 | ('\0' == key[0]) || | 278 | ('\0' == key[0]) || |
274 | (NULL == token) || | 279 | (NULL == token) || |
275 | ('\0' == token[0]) ) | 280 | ('\0' == token[0]) ) |
276 | return false; | 281 | return false; |
277 | 282 | ||
278 | for (struct MHD_HTTP_Header *pos = response->first_header; | 283 | for (pos = response->first_header; |
279 | NULL != pos; | 284 | NULL != pos; |
280 | pos = pos->next) | 285 | pos = pos->next) |
281 | { | 286 | { |
diff --git a/src/microhttpd/test_str.c b/src/microhttpd/test_str.c index d64dad9e..12e12a85 100644 --- a/src/microhttpd/test_str.c +++ b/src/microhttpd/test_str.c | |||
@@ -1951,7 +1951,7 @@ int check_strx_to_uint32_n_no_val(void) | |||
1951 | { | 1951 | { |
1952 | size_t rs; | 1952 | size_t rs; |
1953 | const struct str_with_len * const t = str_no_num + i; | 1953 | const struct str_with_len * const t = str_no_num + i; |
1954 | static const uint32_t rnd_val = 3214314212L; | 1954 | static const uint32_t rnd_val = 3214314212UL; |
1955 | size_t len; | 1955 | size_t len; |
1956 | 1956 | ||
1957 | for (len = 0; len <= t->len + 1; len++) | 1957 | for (len = 0; len <= t->len + 1; len++) |
@@ -2397,7 +2397,7 @@ int check_strx_to_uint64_n_no_val(void) | |||
2397 | { | 2397 | { |
2398 | size_t rs; | 2398 | size_t rs; |
2399 | const struct str_with_len * const t = str_no_num + i; | 2399 | const struct str_with_len * const t = str_no_num + i; |
2400 | static const uint64_t rnd_val = 3214314212L; | 2400 | static const uint64_t rnd_val = 3214314212UL; |
2401 | size_t len; | 2401 | size_t len; |
2402 | 2402 | ||
2403 | for (len = 0; len <= t->len + 1; len++) | 2403 | for (len = 0; len <= t->len + 1; len++) |
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c index 4fc4051c..62d4afbd 100644 --- a/src/microhttpd/test_upgrade.c +++ b/src/microhttpd/test_upgrade.c | |||
@@ -566,9 +566,10 @@ send_all (wr_socket sock, | |||
566 | { | 566 | { |
567 | size_t len = strlen (text); | 567 | size_t len = strlen (text); |
568 | ssize_t ret; | 568 | ssize_t ret; |
569 | size_t off; | ||
569 | 570 | ||
570 | make_blocking (wr_fd (sock)); | 571 | make_blocking (wr_fd (sock)); |
571 | for (size_t off = 0; off < len; off += ret) | 572 | for (off = 0; off < len; off += ret) |
572 | { | 573 | { |
573 | ret = wr_send (sock, | 574 | ret = wr_send (sock, |
574 | &text[off], | 575 | &text[off], |
@@ -642,9 +643,10 @@ recv_all (wr_socket sock, | |||
642 | size_t len = strlen (text); | 643 | size_t len = strlen (text); |
643 | char buf[len]; | 644 | char buf[len]; |
644 | ssize_t ret; | 645 | ssize_t ret; |
646 | size_t off; | ||
645 | 647 | ||
646 | make_blocking (wr_fd (sock)); | 648 | make_blocking (wr_fd (sock)); |
647 | for (size_t off = 0; off < len; off += ret) | 649 | for (off = 0; off < len; off += ret) |
648 | { | 650 | { |
649 | ret = wr_recv (sock, | 651 | ret = wr_recv (sock, |
650 | &buf[off], | 652 | &buf[off], |
diff --git a/src/testcurl/gauger.h b/src/testcurl/gauger.h index 3a0dd220..6698f5d5 100644 --- a/src/testcurl/gauger.h +++ b/src/testcurl/gauger.h | |||
@@ -81,6 +81,6 @@ | |||
81 | #define GAUGER_ID(category, counter, value, unit, id) {} | 81 | #define GAUGER_ID(category, counter, value, unit, id) {} |
82 | #define GAUGER(category, counter, value, unit) {} | 82 | #define GAUGER(category, counter, value, unit) {} |
83 | 83 | ||
84 | #endif // WINDOWS | 84 | #endif /* WINDOWS */ |
85 | 85 | ||
86 | #endif | 86 | #endif |
diff --git a/src/testcurl/https/test_https_session_info.c b/src/testcurl/https/test_https_session_info.c index f0bee495..e300c910 100644 --- a/src/testcurl/https/test_https_session_info.c +++ b/src/testcurl/https/test_https_session_info.c | |||
@@ -163,9 +163,9 @@ test_query_session () | |||
163 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0); | 163 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0); |
164 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 164 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); |
165 | 165 | ||
166 | // NOTE: use of CONNECTTIMEOUT without also | 166 | /* NOTE: use of CONNECTTIMEOUT without also |
167 | // setting NOSIGNAL results in really weird | 167 | * setting NOSIGNAL results in really weird |
168 | // crashes on my system! | 168 | * crashes on my system! */ |
169 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 169 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
170 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 170 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
171 | { | 171 | { |
diff --git a/src/testcurl/test_delete.c b/src/testcurl/test_delete.c index 55a53288..70f0f509 100644 --- a/src/testcurl/test_delete.c +++ b/src/testcurl/test_delete.c | |||
@@ -168,9 +168,9 @@ testInternalDelete () | |||
168 | else | 168 | else |
169 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 169 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
170 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 170 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
171 | // NOTE: use of CONNECTTIMEOUT without also | 171 | /* NOTE: use of CONNECTTIMEOUT without also |
172 | // setting NOSIGNAL results in really weird | 172 | * setting NOSIGNAL results in really weird |
173 | // crashes on my system! | 173 | * crashes on my system! */ |
174 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 174 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
175 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 175 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
176 | { | 176 | { |
@@ -241,9 +241,9 @@ testMultithreadedDelete () | |||
241 | else | 241 | else |
242 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 242 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
243 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 243 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
244 | // NOTE: use of CONNECTTIMEOUT without also | 244 | /* NOTE: use of CONNECTTIMEOUT without also |
245 | // setting NOSIGNAL results in really weird | 245 | * setting NOSIGNAL results in really weird |
246 | // crashes on my system! | 246 | * crashes on my system! */ |
247 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 247 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
248 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 248 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
249 | { | 249 | { |
@@ -315,9 +315,9 @@ testMultithreadedPoolDelete () | |||
315 | else | 315 | else |
316 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 316 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
317 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 317 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
318 | // NOTE: use of CONNECTTIMEOUT without also | 318 | /* NOTE: use of CONNECTTIMEOUT without also |
319 | // setting NOSIGNAL results in really weird | 319 | * setting NOSIGNAL results in really weird |
320 | // crashes on my system! | 320 | * crashes on my system! */ |
321 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 321 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
322 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 322 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
323 | { | 323 | { |
@@ -404,9 +404,9 @@ testExternalDelete () | |||
404 | else | 404 | else |
405 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 405 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
406 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 406 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
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, 1); |
411 | 411 | ||
412 | 412 | ||
diff --git a/src/testcurl/test_get_chunked.c b/src/testcurl/test_get_chunked.c index 46730fd4..5d48fdc0 100644 --- a/src/testcurl/test_get_chunked.c +++ b/src/testcurl/test_get_chunked.c | |||
@@ -214,9 +214,9 @@ testInternalGet () | |||
214 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 214 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
215 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 215 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
216 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 216 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
217 | // NOTE: use of CONNECTTIMEOUT without also | 217 | /* NOTE: use of CONNECTTIMEOUT without also |
218 | // setting NOSIGNAL results in really weird | 218 | * setting NOSIGNAL results in really weird |
219 | // crashes on my system! | 219 | * crashes on my system! */ |
220 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 220 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
221 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 221 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
222 | { | 222 | { |
@@ -271,9 +271,9 @@ testMultithreadedGet () | |||
271 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 271 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
272 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 272 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
273 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 273 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
274 | // NOTE: use of CONNECTTIMEOUT without also | 274 | /* NOTE: use of CONNECTTIMEOUT without also |
275 | // setting NOSIGNAL results in really weird | 275 | * setting NOSIGNAL results in really weird |
276 | // crashes on my system! | 276 | * crashes on my system! */ |
277 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 277 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
278 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 278 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
279 | { | 279 | { |
@@ -329,9 +329,9 @@ testMultithreadedPoolGet () | |||
329 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 329 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
330 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 330 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
331 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 331 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
332 | // NOTE: use of CONNECTTIMEOUT without also | 332 | /* NOTE: use of CONNECTTIMEOUT without also |
333 | // setting NOSIGNAL results in really weird | 333 | * setting NOSIGNAL results in really weird |
334 | // crashes on my system! | 334 | * crashes on my system! */ |
335 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 335 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
336 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 336 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
337 | { | 337 | { |
@@ -401,9 +401,9 @@ testExternalGet () | |||
401 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 401 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
402 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 402 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
403 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 5L); | 403 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 5L); |
404 | // NOTE: use of CONNECTTIMEOUT without also | 404 | /* NOTE: use of CONNECTTIMEOUT without also |
405 | // setting NOSIGNAL results in really weird | 405 | * setting NOSIGNAL results in really weird |
406 | // crashes on my system! | 406 | * crashes on my system! */ |
407 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 407 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
408 | 408 | ||
409 | 409 | ||
diff --git a/src/testcurl/test_get_response_cleanup.c b/src/testcurl/test_get_response_cleanup.c index 0189a1c1..8cb4f4a7 100644 --- a/src/testcurl/test_get_response_cleanup.c +++ b/src/testcurl/test_get_response_cleanup.c | |||
@@ -187,7 +187,7 @@ testInternalGet () | |||
187 | (void)sleep (1); | 187 | (void)sleep (1); |
188 | kill_curl (curl); | 188 | kill_curl (curl); |
189 | (void)sleep (1); | 189 | (void)sleep (1); |
190 | // fprintf (stderr, "Stopping daemon!\n"); | 190 | /* fprintf (stderr, "Stopping daemon!\n"); */ |
191 | MHD_stop_daemon (d); | 191 | MHD_stop_daemon (d); |
192 | if (ok != 0) | 192 | if (ok != 0) |
193 | return 2; | 193 | return 2; |
@@ -378,7 +378,7 @@ testExternalGet () | |||
378 | } | 378 | } |
379 | MHD_run (d); | 379 | MHD_run (d); |
380 | } | 380 | } |
381 | // fprintf (stderr, "Stopping daemon!\n"); | 381 | /* fprintf (stderr, "Stopping daemon!\n"); */ |
382 | MHD_stop_daemon (d); | 382 | MHD_stop_daemon (d); |
383 | if (ok != 0) | 383 | if (ok != 0) |
384 | return 1024; | 384 | return 1024; |
diff --git a/src/testcurl/test_iplimit.c b/src/testcurl/test_iplimit.c index 392b2915..32f7e36a 100644 --- a/src/testcurl/test_iplimit.c +++ b/src/testcurl/test_iplimit.c | |||
@@ -171,9 +171,9 @@ testMultithreadedGet () | |||
171 | curl_easy_setopt (c, CURLOPT_FORBID_REUSE, 0L); | 171 | curl_easy_setopt (c, CURLOPT_FORBID_REUSE, 0L); |
172 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 172 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
173 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 173 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
174 | // NOTE: use of CONNECTTIMEOUT without also | 174 | /* NOTE: use of CONNECTTIMEOUT without also |
175 | // setting NOSIGNAL results in really weird | 175 | * setting NOSIGNAL results in really weird |
176 | // crashes on my system! | 176 | * crashes on my system! */ |
177 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 177 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
178 | 178 | ||
179 | errornum = curl_easy_perform (c); | 179 | errornum = curl_easy_perform (c); |
@@ -278,9 +278,9 @@ testMultithreadedPoolGet () | |||
278 | curl_easy_setopt (c, CURLOPT_FORBID_REUSE, 0L); | 278 | curl_easy_setopt (c, CURLOPT_FORBID_REUSE, 0L); |
279 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 279 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
280 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 280 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
281 | // NOTE: use of CONNECTTIMEOUT without also | 281 | /* NOTE: use of CONNECTTIMEOUT without also |
282 | // setting NOSIGNAL results in really weird | 282 | * setting NOSIGNAL results in really weird |
283 | // crashes on my system! | 283 | * crashes on my system! */ |
284 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 284 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
285 | 285 | ||
286 | errornum = curl_easy_perform (c); | 286 | errornum = curl_easy_perform (c); |
diff --git a/src/testcurl/test_large_put.c b/src/testcurl/test_large_put.c index a801856f..b7a87c8f 100644 --- a/src/testcurl/test_large_put.c +++ b/src/testcurl/test_large_put.c | |||
@@ -230,9 +230,9 @@ testPutInternalThread (unsigned int add_flag) | |||
230 | else | 230 | else |
231 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 231 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
232 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 232 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
233 | // NOTE: use of CONNECTTIMEOUT without also | 233 | /* NOTE: use of CONNECTTIMEOUT without also |
234 | // setting NOSIGNAL results in really weird | 234 | * setting NOSIGNAL results in really weird |
235 | // crashes on my system! | 235 | * crashes on my system! */ |
236 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 236 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
237 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 237 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
238 | { | 238 | { |
@@ -310,9 +310,9 @@ testPutThreadPerConn (unsigned int add_flag) | |||
310 | else | 310 | else |
311 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 311 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
312 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 312 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
313 | // NOTE: use of CONNECTTIMEOUT without also | 313 | /* NOTE: use of CONNECTTIMEOUT without also |
314 | // setting NOSIGNAL results in really weird | 314 | * setting NOSIGNAL results in really weird |
315 | // crashes on my system! | 315 | * crashes on my system! */ |
316 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 316 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
317 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 317 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
318 | { | 318 | { |
@@ -393,9 +393,9 @@ testPutThreadPool (unsigned int add_flag) | |||
393 | else | 393 | else |
394 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 394 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
395 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 395 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
396 | // NOTE: use of CONNECTTIMEOUT without also | 396 | /* NOTE: use of CONNECTTIMEOUT without also |
397 | // setting NOSIGNAL results in really weird | 397 | * setting NOSIGNAL results in really weird |
398 | // crashes on my system! | 398 | * crashes on my system! */ |
399 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 399 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
400 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 400 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
401 | { | 401 | { |
@@ -490,9 +490,9 @@ testPutExternal (void) | |||
490 | else | 490 | else |
491 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 491 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
492 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 492 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
493 | // NOTE: use of CONNECTTIMEOUT without also | 493 | /* NOTE: use of CONNECTTIMEOUT without also |
494 | // setting NOSIGNAL results in really weird | 494 | * setting NOSIGNAL results in really weird |
495 | // crashes on my system! | 495 | * crashes on my system! */ |
496 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 496 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
497 | 497 | ||
498 | 498 | ||
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c index 6af7b38a..6b91b9cc 100644 --- a/src/testcurl/test_post.c +++ b/src/testcurl/test_post.c | |||
@@ -213,9 +213,9 @@ testInternalPost () | |||
213 | else | 213 | else |
214 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 214 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
215 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 215 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
216 | // NOTE: use of CONNECTTIMEOUT without also | 216 | /* NOTE: use of CONNECTTIMEOUT without also |
217 | // setting NOSIGNAL results in really weird | 217 | * setting NOSIGNAL results in really weird |
218 | // crashes on my system! | 218 | * crashes on my system! */ |
219 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 219 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
220 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 220 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
221 | { | 221 | { |
@@ -286,9 +286,9 @@ testMultithreadedPost () | |||
286 | else | 286 | else |
287 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 287 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
288 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 288 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
289 | // NOTE: use of CONNECTTIMEOUT without also | 289 | /* NOTE: use of CONNECTTIMEOUT without also |
290 | // setting NOSIGNAL results in really weird | 290 | * setting NOSIGNAL results in really weird |
291 | // crashes on my system! | 291 | * crashes on my system! */ |
292 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 292 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
293 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 293 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
294 | { | 294 | { |
@@ -360,9 +360,9 @@ testMultithreadedPoolPost () | |||
360 | else | 360 | else |
361 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 361 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
362 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 362 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
363 | // NOTE: use of CONNECTTIMEOUT without also | 363 | /* NOTE: use of CONNECTTIMEOUT without also |
364 | // setting NOSIGNAL results in really weird | 364 | * setting NOSIGNAL results in really weird |
365 | // crashes on my system! | 365 | * crashes on my system! */ |
366 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 366 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
367 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 367 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
368 | { | 368 | { |
@@ -448,9 +448,9 @@ testExternalPost () | |||
448 | else | 448 | else |
449 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 449 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
450 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 450 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
451 | // NOTE: use of CONNECTTIMEOUT without also | 451 | /* NOTE: use of CONNECTTIMEOUT without also |
452 | // setting NOSIGNAL results in really weird | 452 | * setting NOSIGNAL results in really weird |
453 | // crashes on my system! | 453 | * crashes on my system! */ |
454 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 454 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
455 | 455 | ||
456 | 456 | ||
@@ -692,9 +692,9 @@ testMultithreadedPostCancelPart(int flags) | |||
692 | else | 692 | else |
693 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 693 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
694 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 694 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
695 | // NOTE: use of CONNECTTIMEOUT without also | 695 | /* NOTE: use of CONNECTTIMEOUT without also |
696 | // setting NOSIGNAL results in really weird | 696 | * setting NOSIGNAL results in really weird |
697 | // crashes on my system! | 697 | * crashes on my system! */ |
698 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 698 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
699 | 699 | ||
700 | if (flags & FLAG_CHUNKED) | 700 | if (flags & FLAG_CHUNKED) |
diff --git a/src/testcurl/test_post_loop.c b/src/testcurl/test_post_loop.c index 880d3389..5ed57431 100644 --- a/src/testcurl/test_post_loop.c +++ b/src/testcurl/test_post_loop.c | |||
@@ -164,9 +164,9 @@ testInternalPost () | |||
164 | else | 164 | else |
165 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 165 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
166 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 166 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
167 | // NOTE: use of CONNECTTIMEOUT without also | 167 | /* NOTE: use of CONNECTTIMEOUT without also |
168 | // setting NOSIGNAL results in really weird | 168 | * setting NOSIGNAL results in really weird |
169 | // crashes on my system! | 169 | * crashes on my system! */ |
170 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 170 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
171 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 171 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
172 | { | 172 | { |
@@ -246,9 +246,9 @@ testMultithreadedPost () | |||
246 | else | 246 | else |
247 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 247 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
248 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 248 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
249 | // NOTE: use of CONNECTTIMEOUT without also | 249 | /* NOTE: use of CONNECTTIMEOUT without also |
250 | // setting NOSIGNAL results in really weird | 250 | * setting NOSIGNAL results in really weird |
251 | // crashes on my system! | 251 | * crashes on my system! */ |
252 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 252 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
253 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 253 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
254 | { | 254 | { |
@@ -329,9 +329,9 @@ testMultithreadedPoolPost () | |||
329 | else | 329 | else |
330 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 330 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
331 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 331 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
332 | // NOTE: use of CONNECTTIMEOUT without also | 332 | /* NOTE: use of CONNECTTIMEOUT without also |
333 | // setting NOSIGNAL results in really weird | 333 | * setting NOSIGNAL results in really weird |
334 | // crashes on my system! | 334 | * crashes on my system! */ |
335 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 335 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
336 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 336 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
337 | { | 337 | { |
@@ -435,9 +435,9 @@ testExternalPost () | |||
435 | else | 435 | else |
436 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 436 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
437 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 437 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
438 | // NOTE: use of CONNECTTIMEOUT without also | 438 | /* NOTE: use of CONNECTTIMEOUT without also |
439 | // setting NOSIGNAL results in really weird | 439 | * setting NOSIGNAL results in really weird |
440 | // crashes on my system! | 440 | * crashes on my system! */ |
441 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 441 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
442 | mret = curl_multi_add_handle (multi, c); | 442 | mret = curl_multi_add_handle (multi, c); |
443 | if (mret != CURLM_OK) | 443 | if (mret != CURLM_OK) |
diff --git a/src/testcurl/test_postform.c b/src/testcurl/test_postform.c index f0a77b8d..f94ed1f8 100644 --- a/src/testcurl/test_postform.c +++ b/src/testcurl/test_postform.c | |||
@@ -227,9 +227,9 @@ testInternalPost () | |||
227 | else | 227 | else |
228 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 228 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
229 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 229 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
230 | // NOTE: use of CONNECTTIMEOUT without also | 230 | /* NOTE: use of CONNECTTIMEOUT without also |
231 | // setting NOSIGNAL results in really weird | 231 | * setting NOSIGNAL results in really weird |
232 | // crashes on my system! | 232 | * crashes on my system! */ |
233 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 233 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
234 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 234 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
235 | { | 235 | { |
@@ -302,9 +302,9 @@ testMultithreadedPost () | |||
302 | else | 302 | else |
303 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 303 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
304 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 5L); | 304 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 5L); |
305 | // NOTE: use of CONNECTTIMEOUT without also | 305 | /* NOTE: use of CONNECTTIMEOUT without also |
306 | // setting NOSIGNAL results in really weird | 306 | * setting NOSIGNAL results in really weird |
307 | // crashes on my system! | 307 | * crashes on my system! */ |
308 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 308 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
309 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 309 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
310 | { | 310 | { |
@@ -378,9 +378,9 @@ testMultithreadedPoolPost () | |||
378 | else | 378 | else |
379 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 379 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
380 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 5L); | 380 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 5L); |
381 | // NOTE: use of CONNECTTIMEOUT without also | 381 | /* NOTE: use of CONNECTTIMEOUT without also |
382 | // setting NOSIGNAL results in really weird | 382 | * setting NOSIGNAL results in really weird |
383 | // crashes on my system! | 383 | * crashes on my system! */ |
384 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 384 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
385 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 385 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
386 | { | 386 | { |
@@ -468,9 +468,9 @@ testExternalPost () | |||
468 | else | 468 | else |
469 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 469 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
470 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 470 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
471 | // NOTE: use of CONNECTTIMEOUT without also | 471 | /* NOTE: use of CONNECTTIMEOUT without also |
472 | // setting NOSIGNAL results in really weird | 472 | * setting NOSIGNAL results in really weird |
473 | // crashes on my system! | 473 | * crashes on my system! */ |
474 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 474 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
475 | 475 | ||
476 | 476 | ||
diff --git a/src/testcurl/test_put.c b/src/testcurl/test_put.c index 8f4198f5..83c4a124 100644 --- a/src/testcurl/test_put.c +++ b/src/testcurl/test_put.c | |||
@@ -171,9 +171,9 @@ testInternalPut () | |||
171 | else | 171 | else |
172 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 172 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
173 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 173 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
174 | // NOTE: use of CONNECTTIMEOUT without also | 174 | /* NOTE: use of CONNECTTIMEOUT without also |
175 | // setting NOSIGNAL results in really weird | 175 | * setting NOSIGNAL results in really weird |
176 | // crashes on my system! | 176 | * crashes on my system! */ |
177 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 177 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
178 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 178 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
179 | { | 179 | { |
@@ -246,9 +246,9 @@ testMultithreadedPut () | |||
246 | else | 246 | else |
247 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 247 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
248 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 248 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
249 | // NOTE: use of CONNECTTIMEOUT without also | 249 | /* NOTE: use of CONNECTTIMEOUT without also |
250 | // setting NOSIGNAL results in really weird | 250 | * setting NOSIGNAL results in really weird |
251 | // crashes on my system! | 251 | * crashes on my system! */ |
252 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 252 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
253 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 253 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
254 | { | 254 | { |
@@ -323,9 +323,9 @@ testMultithreadedPoolPut () | |||
323 | else | 323 | else |
324 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 324 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
325 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 325 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
326 | // NOTE: use of CONNECTTIMEOUT without also | 326 | /* NOTE: use of CONNECTTIMEOUT without also |
327 | // setting NOSIGNAL results in really weird | 327 | * setting NOSIGNAL results in really weird |
328 | // crashes on my system! | 328 | * crashes on my system! */ |
329 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 329 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
330 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 330 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
331 | { | 331 | { |
@@ -415,9 +415,9 @@ curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | |||
415 | else | 415 | else |
416 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 416 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
417 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 417 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
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, 1); |
422 | 422 | ||
423 | 423 | ||
diff --git a/src/testcurl/test_put_chunked.c b/src/testcurl/test_put_chunked.c index 5e9acbba..479079fb 100644 --- a/src/testcurl/test_put_chunked.c +++ b/src/testcurl/test_put_chunked.c | |||
@@ -169,17 +169,17 @@ testInternalPut () | |||
169 | curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); | 169 | curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); |
170 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 170 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
171 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 171 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
172 | /* by not giving the file size, we force chunking! */ | ||
172 | /* | 173 | /* |
173 | // by not giving the file size, we force chunking! | ||
174 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 174 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
175 | */ | 175 | */ |
176 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 176 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); |
177 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 177 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
178 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 178 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
179 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 179 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
180 | // NOTE: use of CONNECTTIMEOUT without also | 180 | /* NOTE: use of CONNECTTIMEOUT without also |
181 | // setting NOSIGNAL results in really weird | 181 | * setting NOSIGNAL results in really weird |
182 | // crashes on my system! | 182 | * crashes on my system! */ |
183 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 183 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
184 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 184 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
185 | { | 185 | { |
@@ -240,17 +240,17 @@ testMultithreadedPut () | |||
240 | curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); | 240 | curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); |
241 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 241 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
242 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 242 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
243 | /* by not giving the file size, we force chunking! */ | ||
243 | /* | 244 | /* |
244 | // by not giving the file size, we force chunking! | ||
245 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 245 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
246 | */ | 246 | */ |
247 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 247 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); |
248 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 248 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
249 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 249 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
250 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 250 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
251 | // NOTE: use of CONNECTTIMEOUT without also | 251 | /* NOTE: use of CONNECTTIMEOUT without also |
252 | // setting NOSIGNAL results in really weird | 252 | * setting NOSIGNAL results in really weird |
253 | // crashes on my system! | 253 | * crashes on my system! */ |
254 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 254 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
255 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 255 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
256 | { | 256 | { |
@@ -313,17 +313,17 @@ testMultithreadedPoolPut () | |||
313 | curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); | 313 | curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); |
314 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 314 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
315 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 315 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
316 | /* by not giving the file size, we force chunking! */ | ||
316 | /* | 317 | /* |
317 | // by not giving the file size, we force chunking! | ||
318 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 318 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
319 | */ | 319 | */ |
320 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 320 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); |
321 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 321 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
322 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 322 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
323 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 323 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
324 | // NOTE: use of CONNECTTIMEOUT without also | 324 | /* NOTE: use of CONNECTTIMEOUT without also |
325 | // setting NOSIGNAL results in really weird | 325 | * setting NOSIGNAL results in really weird |
326 | // crashes on my system! | 326 | * crashes on my system! */ |
327 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 327 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
328 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 328 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
329 | { | 329 | { |
@@ -401,17 +401,17 @@ testExternalPut () | |||
401 | curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); | 401 | curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); |
402 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 402 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
403 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 403 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
404 | /* by not giving the file size, we force chunking! */ | ||
404 | /* | 405 | /* |
405 | // by not giving the file size, we force chunking! | ||
406 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 406 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
407 | */ | 407 | */ |
408 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 408 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); |
409 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 409 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
410 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 410 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
411 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 411 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
412 | // NOTE: use of CONNECTTIMEOUT without also | 412 | /* NOTE: use of CONNECTTIMEOUT without also |
413 | // setting NOSIGNAL results in really weird | 413 | * setting NOSIGNAL results in really weird |
414 | // crashes on my system! | 414 | * crashes on my system! */ |
415 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 415 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
416 | 416 | ||
417 | 417 | ||
diff --git a/src/testcurl/test_termination.c b/src/testcurl/test_termination.c index 94e0faa4..6f633c84 100644 --- a/src/testcurl/test_termination.c +++ b/src/testcurl/test_termination.c | |||
@@ -121,7 +121,7 @@ main (void) | |||
121 | } | 121 | } |
122 | 122 | ||
123 | CURL *curl = curl_easy_init (); | 123 | CURL *curl = curl_easy_init (); |
124 | //curl_easy_setopt(curl, CURLOPT_POST, 1L); | 124 | /* curl_easy_setopt(curl, CURLOPT_POST, 1L); */ |
125 | char url[255]; | 125 | char url[255]; |
126 | sprintf (url, "http://127.0.0.1:%d", port); | 126 | sprintf (url, "http://127.0.0.1:%d", port); |
127 | curl_easy_setopt (curl, CURLOPT_URL, url); | 127 | curl_easy_setopt (curl, CURLOPT_URL, url); |
diff --git a/src/testcurl/test_timeout.c b/src/testcurl/test_timeout.c index 15b46eab..7621cfd1 100644 --- a/src/testcurl/test_timeout.c +++ b/src/testcurl/test_timeout.c | |||
@@ -217,9 +217,9 @@ testWithoutTimeout () | |||
217 | else | 217 | else |
218 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 218 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
219 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 219 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
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, 1); |
224 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 224 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
225 | { | 225 | { |
@@ -291,9 +291,9 @@ testWithTimeout () | |||
291 | else | 291 | else |
292 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 292 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
293 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); | 293 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); |
294 | // NOTE: use of CONNECTTIMEOUT without also | 294 | /* NOTE: use of CONNECTTIMEOUT without also |
295 | // setting NOSIGNAL results in really weird | 295 | * setting NOSIGNAL results in really weird |
296 | // crashes on my system! | 296 | * crashes on my system! */ |
297 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 297 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
298 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 298 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
299 | { | 299 | { |
diff --git a/src/testzzuf/test_get.c b/src/testzzuf/test_get.c index 503aee44..7e116d09 100644 --- a/src/testzzuf/test_get.c +++ b/src/testzzuf/test_get.c | |||
@@ -124,9 +124,9 @@ testInternalGet () | |||
124 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 124 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
125 | else | 125 | else |
126 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 126 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
127 | // NOTE: use of CONNECTTIMEOUT without also | 127 | /* NOTE: use of CONNECTTIMEOUT without also |
128 | // setting NOSIGNAL results in really weird | 128 | * setting NOSIGNAL results in really weird |
129 | // crashes on my system! | 129 | * crashes on my system! */ |
130 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 130 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
131 | curl_easy_perform (c); | 131 | curl_easy_perform (c); |
132 | curl_easy_cleanup (c); | 132 | curl_easy_cleanup (c); |
@@ -168,9 +168,9 @@ testMultithreadedGet () | |||
168 | else | 168 | else |
169 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 169 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
170 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 170 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
171 | // NOTE: use of CONNECTTIMEOUT without also | 171 | /* NOTE: use of CONNECTTIMEOUT without also |
172 | // setting NOSIGNAL results in really weird | 172 | * setting NOSIGNAL results in really weird |
173 | // crashes on my system! | 173 | * crashes on my system! */ |
174 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 174 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
175 | curl_easy_perform (c); | 175 | curl_easy_perform (c); |
176 | curl_easy_cleanup (c); | 176 | curl_easy_cleanup (c); |
@@ -229,9 +229,9 @@ testExternalGet () | |||
229 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 229 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
230 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 230 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
231 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 231 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
232 | // NOTE: use of CONNECTTIMEOUT without also | 232 | /* NOTE: use of CONNECTTIMEOUT without also |
233 | // setting NOSIGNAL results in really weird | 233 | * setting NOSIGNAL results in really weird |
234 | // crashes on my system! | 234 | * crashes on my system! */ |
235 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 235 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
236 | mret = curl_multi_add_handle (multi, c); | 236 | mret = curl_multi_add_handle (multi, c); |
237 | if (mret != CURLM_OK) | 237 | if (mret != CURLM_OK) |
diff --git a/src/testzzuf/test_get_chunked.c b/src/testzzuf/test_get_chunked.c index 3e274e7f..e36145ea 100644 --- a/src/testzzuf/test_get_chunked.c +++ b/src/testzzuf/test_get_chunked.c | |||
@@ -148,9 +148,9 @@ testInternalGet () | |||
148 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 148 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
149 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 149 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
150 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 150 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
151 | // NOTE: use of CONNECTTIMEOUT without also | 151 | /* NOTE: use of CONNECTTIMEOUT without also |
152 | // setting NOSIGNAL results in really weird | 152 | * setting NOSIGNAL results in really weird |
153 | // crashes on my system! | 153 | * crashes on my system! */ |
154 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 154 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
155 | curl_easy_perform (c); | 155 | curl_easy_perform (c); |
156 | curl_easy_cleanup (c); | 156 | curl_easy_cleanup (c); |
@@ -189,9 +189,9 @@ testMultithreadedGet () | |||
189 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 189 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
190 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 190 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
191 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 191 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
192 | // NOTE: use of CONNECTTIMEOUT without also | 192 | /* NOTE: use of CONNECTTIMEOUT without also |
193 | // setting NOSIGNAL results in really weird | 193 | * setting NOSIGNAL results in really weird |
194 | // crashes on my system! | 194 | * crashes on my system! */ |
195 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 195 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
196 | curl_easy_perform (c); | 196 | curl_easy_perform (c); |
197 | curl_easy_cleanup (c); | 197 | curl_easy_cleanup (c); |
@@ -247,9 +247,9 @@ testExternalGet () | |||
247 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 247 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
248 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 248 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
249 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 249 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
250 | // NOTE: use of CONNECTTIMEOUT without also | 250 | /* NOTE: use of CONNECTTIMEOUT without also |
251 | // setting NOSIGNAL results in really weird | 251 | * setting NOSIGNAL results in really weird |
252 | // crashes on my system! | 252 | * crashes on my system! */ |
253 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 253 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
254 | mret = curl_multi_add_handle (multi, c); | 254 | mret = curl_multi_add_handle (multi, c); |
255 | if (mret != CURLM_OK) | 255 | if (mret != CURLM_OK) |
diff --git a/src/testzzuf/test_long_header.c b/src/testzzuf/test_long_header.c index 26932ea0..c4e5cf81 100644 --- a/src/testzzuf/test_long_header.c +++ b/src/testzzuf/test_long_header.c | |||
@@ -139,9 +139,9 @@ testLongUrlGet () | |||
139 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 139 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
140 | else | 140 | else |
141 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 141 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
142 | // NOTE: use of CONNECTTIMEOUT without also | 142 | /* NOTE: use of CONNECTTIMEOUT without also |
143 | // setting NOSIGNAL results in really weird | 143 | * setting NOSIGNAL results in really weird |
144 | // crashes on my system! | 144 | * crashes on my system! */ |
145 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 145 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
146 | curl_easy_perform (c); | 146 | curl_easy_perform (c); |
147 | curl_easy_cleanup (c); | 147 | curl_easy_cleanup (c); |
@@ -202,9 +202,9 @@ testLongHeaderGet () | |||
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 | else | 203 | else |
204 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 204 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
205 | // NOTE: use of CONNECTTIMEOUT without also | 205 | /* NOTE: use of CONNECTTIMEOUT without also |
206 | // setting NOSIGNAL results in really weird | 206 | * setting NOSIGNAL results in really weird |
207 | // crashes on my system! | 207 | * crashes on my system! */ |
208 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 208 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
209 | curl_easy_perform (c); | 209 | curl_easy_perform (c); |
210 | curl_slist_free_all (header); | 210 | curl_slist_free_all (header); |
diff --git a/src/testzzuf/test_post.c b/src/testzzuf/test_post.c index 51e67593..9a4a8e9c 100644 --- a/src/testzzuf/test_post.c +++ b/src/testzzuf/test_post.c | |||
@@ -186,9 +186,9 @@ testInternalPost () | |||
186 | else | 186 | else |
187 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 187 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
188 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 188 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
189 | // NOTE: use of CONNECTTIMEOUT without also | 189 | /* NOTE: use of CONNECTTIMEOUT without also |
190 | // setting NOSIGNAL results in really weird | 190 | * setting NOSIGNAL results in really weird |
191 | // crashes on my system! | 191 | * crashes on my system! */ |
192 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 192 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
193 | curl_easy_perform (c); | 193 | curl_easy_perform (c); |
194 | curl_easy_cleanup (c); | 194 | curl_easy_cleanup (c); |
@@ -238,9 +238,9 @@ testMultithreadedPost () | |||
238 | else | 238 | else |
239 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 239 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
240 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 240 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
241 | // NOTE: use of CONNECTTIMEOUT without also | 241 | /* NOTE: use of CONNECTTIMEOUT without also |
242 | // setting NOSIGNAL results in really weird | 242 | * setting NOSIGNAL results in really weird |
243 | // crashes on my system! | 243 | * crashes on my system! */ |
244 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 244 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
245 | curl_easy_perform (c); | 245 | curl_easy_perform (c); |
246 | curl_easy_cleanup (c); | 246 | curl_easy_cleanup (c); |
@@ -308,9 +308,9 @@ testExternalPost () | |||
308 | else | 308 | else |
309 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 309 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
310 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 310 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
311 | // NOTE: use of CONNECTTIMEOUT without also | 311 | /* NOTE: use of CONNECTTIMEOUT without also |
312 | // setting NOSIGNAL results in really weird | 312 | * setting NOSIGNAL results in really weird |
313 | // crashes on my system! | 313 | * crashes on my system! */ |
314 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 314 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
315 | 315 | ||
316 | 316 | ||
diff --git a/src/testzzuf/test_post_form.c b/src/testzzuf/test_post_form.c index 60b0fe35..fe248d47 100644 --- a/src/testzzuf/test_post_form.c +++ b/src/testzzuf/test_post_form.c | |||
@@ -203,9 +203,9 @@ testInternalPost () | |||
203 | else | 203 | else |
204 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 204 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
205 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 205 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
206 | // NOTE: use of CONNECTTIMEOUT without also | 206 | /* NOTE: use of CONNECTTIMEOUT without also |
207 | // setting NOSIGNAL results in really weird | 207 | * setting NOSIGNAL results in really weird |
208 | // crashes on my system! | 208 | * crashes on my system! */ |
209 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 209 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
210 | curl_easy_perform (c); | 210 | curl_easy_perform (c); |
211 | curl_easy_cleanup (c); | 211 | curl_easy_cleanup (c); |
@@ -254,9 +254,9 @@ testMultithreadedPost () | |||
254 | else | 254 | else |
255 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 255 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
256 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 256 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
257 | // NOTE: use of CONNECTTIMEOUT without also | 257 | /* NOTE: use of CONNECTTIMEOUT without also |
258 | // setting NOSIGNAL results in really weird | 258 | * setting NOSIGNAL results in really weird |
259 | // crashes on my system! | 259 | * crashes on my system! */ |
260 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 260 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
261 | curl_easy_perform (c); | 261 | curl_easy_perform (c); |
262 | curl_easy_cleanup (c); | 262 | curl_easy_cleanup (c); |
@@ -322,9 +322,9 @@ testExternalPost () | |||
322 | else | 322 | else |
323 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 323 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
324 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 15L); | 324 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 15L); |
325 | // NOTE: use of CONNECTTIMEOUT without also | 325 | /* NOTE: use of CONNECTTIMEOUT without also |
326 | // setting NOSIGNAL results in really weird | 326 | * setting NOSIGNAL results in really weird |
327 | // crashes on my system! | 327 | * crashes on my system! */ |
328 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 328 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
329 | 329 | ||
330 | 330 | ||
diff --git a/src/testzzuf/test_put.c b/src/testzzuf/test_put.c index cc02b5c1..cfe12dee 100644 --- a/src/testzzuf/test_put.c +++ b/src/testzzuf/test_put.c | |||
@@ -153,9 +153,9 @@ testInternalPut () | |||
153 | else | 153 | else |
154 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 154 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
155 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 155 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
156 | // NOTE: use of CONNECTTIMEOUT without also | 156 | /* NOTE: use of CONNECTTIMEOUT without also |
157 | // setting NOSIGNAL results in really weird | 157 | * setting NOSIGNAL results in really weird |
158 | // crashes on my system! | 158 | * crashes on my system! */ |
159 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 159 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
160 | curl_easy_perform (c); | 160 | curl_easy_perform (c); |
161 | curl_easy_cleanup (c); | 161 | curl_easy_cleanup (c); |
@@ -204,9 +204,9 @@ testMultithreadedPut () | |||
204 | else | 204 | else |
205 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 205 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
206 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 206 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
207 | // NOTE: use of CONNECTTIMEOUT without also | 207 | /* NOTE: use of CONNECTTIMEOUT without also |
208 | // setting NOSIGNAL results in really weird | 208 | * setting NOSIGNAL results in really weird |
209 | // crashes on my system! | 209 | * crashes on my system! */ |
210 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 210 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
211 | curl_easy_perform (c); | 211 | curl_easy_perform (c); |
212 | curl_easy_cleanup (c); | 212 | curl_easy_cleanup (c); |
@@ -273,9 +273,9 @@ testExternalPut () | |||
273 | else | 273 | else |
274 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 274 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
275 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 275 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
276 | // NOTE: use of CONNECTTIMEOUT without also | 276 | /* NOTE: use of CONNECTTIMEOUT without also |
277 | // setting NOSIGNAL results in really weird | 277 | * setting NOSIGNAL results in really weird |
278 | // crashes on my system! | 278 | * crashes on my system! */ |
279 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 279 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
280 | 280 | ||
281 | 281 | ||
diff --git a/src/testzzuf/test_put_chunked.c b/src/testzzuf/test_put_chunked.c index 87d7f7e8..72a9f316 100644 --- a/src/testzzuf/test_put_chunked.c +++ b/src/testzzuf/test_put_chunked.c | |||
@@ -151,17 +151,17 @@ testInternalPut () | |||
151 | curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); | 151 | curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); |
152 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 152 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
153 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 153 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
154 | /* by not giving the file size, we force chunking! */ | ||
154 | /* | 155 | /* |
155 | // by not giving the file size, we force chunking! | ||
156 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 156 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
157 | */ | 157 | */ |
158 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 158 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); |
159 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 159 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
160 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 160 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
161 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 161 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
162 | // NOTE: use of CONNECTTIMEOUT without also | 162 | /* NOTE: use of CONNECTTIMEOUT without also |
163 | // setting NOSIGNAL results in really weird | 163 | * setting NOSIGNAL results in really weird |
164 | // crashes on my system! | 164 | * crashes on my system! */ |
165 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 165 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
166 | curl_easy_perform (c); | 166 | curl_easy_perform (c); |
167 | curl_easy_cleanup (c); | 167 | curl_easy_cleanup (c); |
@@ -198,17 +198,17 @@ testMultithreadedPut () | |||
198 | curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); | 198 | curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); |
199 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 199 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
200 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 200 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
201 | /* by not giving the file size, we force chunking! */ | ||
201 | /* | 202 | /* |
202 | // by not giving the file size, we force chunking! | ||
203 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 203 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
204 | */ | 204 | */ |
205 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 205 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); |
206 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 206 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
207 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 207 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
208 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 15L); | 208 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 15L); |
209 | // NOTE: use of CONNECTTIMEOUT without also | 209 | /* NOTE: use of CONNECTTIMEOUT without also |
210 | // setting NOSIGNAL results in really weird | 210 | * setting NOSIGNAL results in really weird |
211 | // crashes on my system! | 211 | * crashes on my system! */ |
212 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 212 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
213 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 213 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
214 | { | 214 | { |
@@ -277,17 +277,17 @@ testExternalPut () | |||
277 | curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); | 277 | curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); |
278 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 278 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
279 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 279 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
280 | /* by not giving the file size, we force chunking! */ | ||
280 | /* | 281 | /* |
281 | // by not giving the file size, we force chunking! | ||
282 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 282 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
283 | */ | 283 | */ |
284 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 284 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); |
285 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 285 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
286 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 286 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
287 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 287 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
288 | // NOTE: use of CONNECTTIMEOUT without also | 288 | /* NOTE: use of CONNECTTIMEOUT without also |
289 | // setting NOSIGNAL results in really weird | 289 | * setting NOSIGNAL results in really weird |
290 | // crashes on my system! | 290 | * crashes on my system! */ |
291 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 291 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
292 | 292 | ||
293 | 293 | ||
diff --git a/src/testzzuf/test_put_large.c b/src/testzzuf/test_put_large.c index d52e7b91..540c37f9 100644 --- a/src/testzzuf/test_put_large.c +++ b/src/testzzuf/test_put_large.c | |||
@@ -168,9 +168,9 @@ testInternalPut () | |||
168 | else | 168 | else |
169 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 169 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
170 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 170 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
171 | // NOTE: use of CONNECTTIMEOUT without also | 171 | /* NOTE: use of CONNECTTIMEOUT without also |
172 | // setting NOSIGNAL results in really weird | 172 | * setting NOSIGNAL results in really weird |
173 | // crashes on my system! | 173 | * crashes on my system! */ |
174 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 174 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
175 | curl_easy_perform (c); | 175 | curl_easy_perform (c); |
176 | curl_easy_cleanup (c); | 176 | curl_easy_cleanup (c); |
@@ -220,9 +220,9 @@ testMultithreadedPut () | |||
220 | else | 220 | else |
221 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 221 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
222 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 222 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
223 | // NOTE: use of CONNECTTIMEOUT without also | 223 | /* NOTE: use of CONNECTTIMEOUT without also |
224 | // setting NOSIGNAL results in really weird | 224 | * setting NOSIGNAL results in really weird |
225 | // crashes on my system! | 225 | * crashes on my system! */ |
226 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 226 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
227 | curl_easy_perform (c); | 227 | curl_easy_perform (c); |
228 | curl_easy_cleanup (c); | 228 | curl_easy_cleanup (c); |
@@ -291,9 +291,9 @@ testExternalPut () | |||
291 | else | 291 | else |
292 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 292 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
293 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 293 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
294 | // NOTE: use of CONNECTTIMEOUT without also | 294 | /* NOTE: use of CONNECTTIMEOUT without also |
295 | // setting NOSIGNAL results in really weird | 295 | * setting NOSIGNAL results in really weird |
296 | // crashes on my system! | 296 | * crashes on my system! */ |
297 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 297 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
298 | 298 | ||
299 | 299 | ||