diff options
Diffstat (limited to 'src/examples/timeout.c')
-rw-r--r-- | src/examples/timeout.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/examples/timeout.c b/src/examples/timeout.c index 51571371..7f6f249a 100644 --- a/src/examples/timeout.c +++ b/src/examples/timeout.c | |||
@@ -14,7 +14,7 @@ answer_to_connection(void *cls, | |||
14 | size_t *upload_data_size, | 14 | size_t *upload_data_size, |
15 | void **con_cls) | 15 | void **con_cls) |
16 | { | 16 | { |
17 | const char *page = "<html><body>Hello world!</body></html>"; | 17 | const char *page = "<html><body>Hello timeout!</body></html>"; |
18 | struct MHD_Response *response; | 18 | struct MHD_Response *response; |
19 | int ret; | 19 | int ret; |
20 | 20 | ||
@@ -36,8 +36,7 @@ int main() | |||
36 | { | 36 | { |
37 | struct MHD_Daemon *daemon; | 37 | struct MHD_Daemon *daemon; |
38 | 38 | ||
39 | daemon = MHD_start_daemon(// MHD_USE_SELECT_INTERNALLY | | 39 | daemon = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION, |
40 | MHD_USE_THREAD_PER_CONNECTION, // if you comment this line, the problem dies | ||
41 | PORT, NULL, NULL, | 40 | PORT, NULL, NULL, |
42 | &answer_to_connection, NULL, | 41 | &answer_to_connection, NULL, |
43 | MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 3, | 42 | MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 3, |