From d7b699d6e175536a1a41d45ca86573c055f27111 Mon Sep 17 00:00:00 2001 From: silvioprog Date: Mon, 18 Jan 2016 20:42:35 -0300 Subject: [PATCH 1/1] -cosmetics --- src/examples/timeout.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/examples/timeout.c b/src/examples/timeout.c index 5157137..7f6f249 100644 --- a/src/examples/timeout.c +++ b/src/examples/timeout.c @@ -14,7 +14,7 @@ answer_to_connection(void *cls, size_t *upload_data_size, void **con_cls) { - const char *page = "Hello world!"; + const char *page = "Hello timeout!"; struct MHD_Response *response; int ret; @@ -36,8 +36,7 @@ int main() { struct MHD_Daemon *daemon; - daemon = MHD_start_daemon(// MHD_USE_SELECT_INTERNALLY | - MHD_USE_THREAD_PER_CONNECTION, // if you comment this line, the problem dies + daemon = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION, PORT, NULL, NULL, &answer_to_connection, NULL, MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 3, -- 1.9.5.msysgit.0