aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/perf_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/perf_get.c')
-rw-r--r--src/testcurl/perf_get.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testcurl/perf_get.c b/src/testcurl/perf_get.c
index 7ed706b7..c39d9ec2 100644
--- a/src/testcurl/perf_get.c
+++ b/src/testcurl/perf_get.c
@@ -227,7 +227,7 @@ testInternalGet (int port, int poll_flag)
227 curl_easy_cleanup (c); 227 curl_easy_cleanup (c);
228 } 228 }
229 stop (poll_flag == MHD_USE_POLL ? "internal poll" : 229 stop (poll_flag == MHD_USE_POLL ? "internal poll" :
230 poll_flag == MHD_USE_EPOLL_LINUX_ONLY ? "internal epoll" : "internal select"); 230 poll_flag == MHD_USE_EPOLL ? "internal epoll" : "internal select");
231 MHD_stop_daemon (d); 231 MHD_stop_daemon (d);
232 if (cbc.pos != strlen ("/hello_world")) 232 if (cbc.pos != strlen ("/hello_world"))
233 return 4; 233 return 4;
@@ -287,7 +287,7 @@ testMultithreadedGet (int port, int poll_flag)
287 curl_easy_cleanup (c); 287 curl_easy_cleanup (c);
288 } 288 }
289 stop ((poll_flag & MHD_USE_POLL) ? "thread with poll" : 289 stop ((poll_flag & MHD_USE_POLL) ? "thread with poll" :
290 (poll_flag & MHD_USE_EPOLL_LINUX_ONLY) ? "thread with epoll" : "thread with select"); 290 (poll_flag & MHD_USE_EPOLL) ? "thread with epoll" : "thread with select");
291 MHD_stop_daemon (d); 291 MHD_stop_daemon (d);
292 if (cbc.pos != strlen ("/hello_world")) 292 if (cbc.pos != strlen ("/hello_world"))
293 return 64; 293 return 64;
@@ -347,7 +347,7 @@ testMultithreadedPoolGet (int port, int poll_flag)
347 curl_easy_cleanup (c); 347 curl_easy_cleanup (c);
348 } 348 }
349 stop (0 != (poll_flag & MHD_USE_POLL) ? "thread pool with poll" : 349 stop (0 != (poll_flag & MHD_USE_POLL) ? "thread pool with poll" :
350 0 != (poll_flag & MHD_USE_EPOLL_LINUX_ONLY) ? "thread pool with epoll" : "thread pool with select"); 350 0 != (poll_flag & MHD_USE_EPOLL) ? "thread pool with epoll" : "thread pool with select");
351 MHD_stop_daemon (d); 351 MHD_stop_daemon (d);
352 if (cbc.pos != strlen ("/hello_world")) 352 if (cbc.pos != strlen ("/hello_world"))
353 return 64; 353 return 64;
@@ -527,8 +527,8 @@ main (int argc, char *const *argv)
527 } 527 }
528 if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_EPOLL)) 528 if (MHD_YES == MHD_is_feature_supported(MHD_FEATURE_EPOLL))
529 { 529 {
530 errorCount += testInternalGet(port++, MHD_USE_EPOLL_LINUX_ONLY); 530 errorCount += testInternalGet(port++, MHD_USE_EPOLL);
531 errorCount += testMultithreadedPoolGet(port++, MHD_USE_EPOLL_LINUX_ONLY); 531 errorCount += testMultithreadedPoolGet(port++, MHD_USE_EPOLL);
532 } 532 }
533 MHD_destroy_response (response); 533 MHD_destroy_response (response);
534 if (errorCount != 0) 534 if (errorCount != 0)