diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-08 05:55:25 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-08 05:55:25 +0000 |
commit | d77425beee2ebac0ab36a4e1dc3fc6fc375f03f7 (patch) | |
tree | 010e1032241add053e00eb747df08478166db130 | |
parent | 7670bd7daab6470176f95dfeb4edf1107700a604 (diff) | |
download | libmicrohttpd-d77425beee2ebac0ab36a4e1dc3fc6fc375f03f7.tar.gz libmicrohttpd-d77425beee2ebac0ab36a4e1dc3fc6fc375f03f7.zip |
-allow benchmark to be run without connection close
-rw-r--r-- | src/examples/benchmark.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/examples/benchmark.c b/src/examples/benchmark.c index 48f294e0..97fa2c70 100644 --- a/src/examples/benchmark.c +++ b/src/examples/benchmark.c | |||
@@ -122,9 +122,11 @@ 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 | #if 0 | ||
125 | (void) MHD_add_response_header (response, | 126 | (void) MHD_add_response_header (response, |
126 | MHD_HTTP_HEADER_CONNECTION, | 127 | MHD_HTTP_HEADER_CONNECTION, |
127 | "close"); | 128 | "close"); |
129 | #endif | ||
128 | d = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_SUPPRESS_DATE_NO_CLOCK | 130 | d = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_SUPPRESS_DATE_NO_CLOCK |
129 | #if EPOLL_SUPPORT | 131 | #if EPOLL_SUPPORT |
130 | | MHD_USE_EPOLL_LINUX_ONLY | MHD_USE_EPOLL_TURBO | 132 | | MHD_USE_EPOLL_LINUX_ONLY | MHD_USE_EPOLL_TURBO |