diff options
Diffstat (limited to 'src/testcurl')
-rw-r--r-- | src/testcurl/gauger.h | 2 | ||||
-rw-r--r-- | src/testcurl/https/test_https_session_info.c | 6 | ||||
-rw-r--r-- | src/testcurl/test_delete.c | 24 | ||||
-rw-r--r-- | src/testcurl/test_get_chunked.c | 24 | ||||
-rw-r--r-- | src/testcurl/test_get_response_cleanup.c | 4 | ||||
-rw-r--r-- | src/testcurl/test_iplimit.c | 12 | ||||
-rw-r--r-- | src/testcurl/test_large_put.c | 24 | ||||
-rw-r--r-- | src/testcurl/test_post.c | 30 | ||||
-rw-r--r-- | src/testcurl/test_post_loop.c | 24 | ||||
-rw-r--r-- | src/testcurl/test_postform.c | 24 | ||||
-rw-r--r-- | src/testcurl/test_put.c | 24 | ||||
-rw-r--r-- | src/testcurl/test_put_chunked.c | 32 | ||||
-rw-r--r-- | src/testcurl/test_termination.c | 2 | ||||
-rw-r--r-- | src/testcurl/test_timeout.c | 12 |
14 files changed, 122 insertions, 122 deletions
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 | { |