aboutsummaryrefslogtreecommitdiff
path: root/src/examples/benchmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/benchmark.c')
-rw-r--r--src/examples/benchmark.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/examples/benchmark.c b/src/examples/benchmark.c
index 711d118a..48f294e0 100644
--- a/src/examples/benchmark.c
+++ b/src/examples/benchmark.c
@@ -122,10 +122,12 @@ main (int argc, char *const *argv)
122 response = MHD_create_response_from_buffer (strlen (PAGE), 122 response = MHD_create_response_from_buffer (strlen (PAGE),
123 (void *) PAGE, 123 (void *) PAGE,
124 MHD_RESPMEM_PERSISTENT); 124 MHD_RESPMEM_PERSISTENT);
125 125 (void) MHD_add_response_header (response,
126 d = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY 126 MHD_HTTP_HEADER_CONNECTION,
127#if ! EPOLL_SUPPORT 127 "close");
128 | MHD_USE_EPOLL_LINUX_ONLY 128 d = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_SUPPRESS_DATE_NO_CLOCK
129#if EPOLL_SUPPORT
130 | MHD_USE_EPOLL_LINUX_ONLY | MHD_USE_EPOLL_TURBO
129#endif 131#endif
130 , 132 ,
131 atoi (argv[1]), 133 atoi (argv[1]),
@@ -134,6 +136,7 @@ main (int argc, char *const *argv)
134 MHD_OPTION_THREAD_POOL_SIZE, (unsigned int) NUMBER_OF_THREADS, 136 MHD_OPTION_THREAD_POOL_SIZE, (unsigned int) NUMBER_OF_THREADS,
135 MHD_OPTION_URI_LOG_CALLBACK, &uri_logger_cb, NULL, 137 MHD_OPTION_URI_LOG_CALLBACK, &uri_logger_cb, NULL,
136 MHD_OPTION_NOTIFY_COMPLETED, &completed_callback, NULL, 138 MHD_OPTION_NOTIFY_COMPLETED, &completed_callback, NULL,
139 MHD_OPTION_CONNECTION_LIMIT, (unsigned int) 1000,
137 MHD_OPTION_END); 140 MHD_OPTION_END);
138 if (d == NULL) 141 if (d == NULL)
139 return 1; 142 return 1;