aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/perf_get_concurrent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/perf_get_concurrent.c')
-rw-r--r--src/testcurl/perf_get_concurrent.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/testcurl/perf_get_concurrent.c b/src/testcurl/perf_get_concurrent.c
index b4cd6d8d..12c57dae 100644
--- a/src/testcurl/perf_get_concurrent.c
+++ b/src/testcurl/perf_get_concurrent.c
@@ -276,7 +276,7 @@ testInternalGet (int port, int poll_flag)
276 { 276 {
277 const union MHD_DaemonInfo *dinfo; 277 const union MHD_DaemonInfo *dinfo;
278 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 278 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
279 if ((NULL == dinfo) ||(0 == dinfo->port) ) 279 if ((NULL == dinfo) || (0 == dinfo->port) )
280 { 280 {
281 MHD_stop_daemon (d); return 32; 281 MHD_stop_daemon (d); return 32;
282 } 282 }
@@ -327,7 +327,7 @@ testMultithreadedGet (int port, int poll_flag)
327 { 327 {
328 const union MHD_DaemonInfo *dinfo; 328 const union MHD_DaemonInfo *dinfo;
329 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 329 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
330 if ((NULL == dinfo) ||(0 == dinfo->port) ) 330 if ((NULL == dinfo) || (0 == dinfo->port) )
331 { 331 {
332 MHD_stop_daemon (d); return 32; 332 MHD_stop_daemon (d); return 32;
333 } 333 }
@@ -375,7 +375,7 @@ testMultithreadedPoolGet (int port, int poll_flag)
375 { 375 {
376 const union MHD_DaemonInfo *dinfo; 376 const union MHD_DaemonInfo *dinfo;
377 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 377 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
378 if ((NULL == dinfo) ||(0 == dinfo->port) ) 378 if ((NULL == dinfo) || (0 == dinfo->port) )
379 { 379 {
380 MHD_stop_daemon (d); return 32; 380 MHD_stop_daemon (d); return 32;
381 } 381 }
@@ -423,7 +423,7 @@ testExternalGet (int port)
423 { 423 {
424 const union MHD_DaemonInfo *dinfo; 424 const union MHD_DaemonInfo *dinfo;
425 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 425 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
426 if ((NULL == dinfo) ||(0 == dinfo->port) ) 426 if ((NULL == dinfo) || (0 == dinfo->port) )
427 { 427 {
428 MHD_stop_daemon (d); return 32; 428 MHD_stop_daemon (d); return 32;
429 } 429 }
@@ -462,9 +462,10 @@ testExternalGet (int port)
462 "select failed: %s\n", 462 "select failed: %s\n",
463 strerror (errno)); 463 strerror (errno));
464#else 464#else
465 if ((WSAEINVAL == WSAGetLastError ()) &&(0 == rs.fd_count) &&(0 == 465 if ((WSAEINVAL == WSAGetLastError ()) && (0 == rs.fd_count) && (0 ==
466 ws.fd_count) 466 ws.
467 &&(0 == es.fd_count) ) 467 fd_count)
468 && (0 == es.fd_count) )
468 { 469 {
469 Sleep (1000); 470 Sleep (1000);
470 continue; 471 continue;
@@ -478,7 +479,7 @@ testExternalGet (int port)
478 479
479 stop ("external select"); 480 stop ("external select");
480 MHD_stop_daemon (d); 481 MHD_stop_daemon (d);
481 if ((0 != pthread_join (pid, (void**) &ret_val))|| 482 if ((0 != pthread_join (pid, (void**) &ret_val)) ||
482 (NULL != ret_val) ) 483 (NULL != ret_val) )
483 { 484 {
484 fprintf (stderr, 485 fprintf (stderr,
@@ -498,7 +499,7 @@ main (int argc, char *const *argv)
498 int port = 1100; 499 int port = 1100;
499 (void) argc; /* Unused. Silent compiler warning. */ 500 (void) argc; /* Unused. Silent compiler warning. */
500 501
501 if ((NULL == argv)||(0 == argv[0])) 502 if ((NULL == argv) || (0 == argv[0]))
502 return 99; 503 return 99;
503 oneone = has_in_name (argv[0], "11"); 504 oneone = has_in_name (argv[0], "11");
504 if (oneone) 505 if (oneone)