diff --git a/src/examples/authorization_example.c b/src/examples/authorization_example.c index d34e6e18..d7931471 100644 --- a/src/examples/authorization_example.c +++ b/src/examples/authorization_example.c @@ -106,7 +106,7 @@ main (int argc, char *const *argv) return 1; } - d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, + d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, atoi (argv[1]), NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END); if (d == NULL) diff --git a/src/examples/chunked_example.c b/src/examples/chunked_example.c index 98987aec..83e9c9d5 100644 --- a/src/examples/chunked_example.c +++ b/src/examples/chunked_example.c @@ -78,10 +78,10 @@ main (int argc, char *const *argv) printf ("%s PORT\n", argv[0]); return 1; } - d = MHD_start_daemon (// MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, + d = MHD_start_daemon (// MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, - // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG | MHD_USE_POLL, - // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, + // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, + // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, atoi (argv[1]), NULL, NULL, &ahc_echo, NULL, MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120, diff --git a/src/examples/digest_auth_example.c b/src/examples/digest_auth_example.c index 82317af2..548d0d96 100644 --- a/src/examples/digest_auth_example.c +++ b/src/examples/digest_auth_example.c @@ -123,7 +123,7 @@ main (int argc, char *const *argv) off += len; } (void) close(fd); - d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, + d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, atoi (argv[1]), NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_DIGEST_AUTH_RANDOM, sizeof(rnd), rnd, diff --git a/src/examples/fileserver_example.c b/src/examples/fileserver_example.c index 546e2e1a..9a46fba1 100644 --- a/src/examples/fileserver_example.c +++ b/src/examples/fileserver_example.c @@ -129,7 +129,7 @@ main (int argc, char *const *argv) printf ("%s PORT\n", argv[0]); return 1; } - d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, + d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, atoi (argv[1]), NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END); if (d == NULL) diff --git a/src/examples/fileserver_example_dirs.c b/src/examples/fileserver_example_dirs.c index c6a86e02..32110aa3 100644 --- a/src/examples/fileserver_example_dirs.c +++ b/src/examples/fileserver_example_dirs.c @@ -190,7 +190,7 @@ main (int argc, char *const *argv) printf ("%s PORT\n", argv[0]); return 1; } - d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, + d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, atoi (argv[1]), NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END); if (NULL == d) diff --git a/src/examples/https_fileserver_example.c b/src/examples/https_fileserver_example.c index b2862af3..a36b5f70 100644 --- a/src/examples/https_fileserver_example.c +++ b/src/examples/https_fileserver_example.c @@ -191,7 +191,7 @@ main (int argc, char *const *argv) /* TODO check if this is truly necessary - disallow usage of the blocking /dev/random */ /* gcry_control(GCRYCTL_ENABLE_QUICK_RANDOM, 0); */ TLS_daemon = - MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG | + MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_TLS, atoi (argv[1]), NULL, NULL, &http_ahc, NULL, MHD_OPTION_CONNECTION_TIMEOUT, 256, MHD_OPTION_HTTPS_MEM_KEY, key_pem, diff --git a/src/examples/minimal_example.c b/src/examples/minimal_example.c index c356210d..8716304a 100644 --- a/src/examples/minimal_example.c +++ b/src/examples/minimal_example.c @@ -67,10 +67,10 @@ main (int argc, char *const *argv) printf ("%s PORT\n", argv[0]); return 1; } - d = MHD_start_daemon (// MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, + d = MHD_start_daemon (// MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, - // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG | MHD_USE_POLL, - // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, + // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, + // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, atoi (argv[1]), NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120, diff --git a/src/examples/minimal_example_comet.c b/src/examples/minimal_example_comet.c index 83057ae2..de1a10a6 100644 --- a/src/examples/minimal_example_comet.c +++ b/src/examples/minimal_example_comet.c @@ -74,7 +74,7 @@ main (int argc, char *const *argv) printf ("%s PORT\n", argv[0]); return 1; } - d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, + d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, atoi (argv[1]), NULL, NULL, &ahc_echo, NULL, MHD_OPTION_END); if (d == NULL) diff --git a/src/examples/querystring_example.c b/src/examples/querystring_example.c index 9844afd3..6f95b44e 100644 --- a/src/examples/querystring_example.c +++ b/src/examples/querystring_example.c @@ -79,7 +79,7 @@ main (int argc, char *const *argv) printf ("%s PORT\n", argv[0]); return 1; } - d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, + d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, atoi (argv[1]), NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END); if (d == NULL) diff --git a/src/examples/refuse_post_example.c b/src/examples/refuse_post_example.c index a834b952..8079f467 100644 --- a/src/examples/refuse_post_example.c +++ b/src/examples/refuse_post_example.c @@ -86,7 +86,7 @@ main (int argc, char *const *argv) printf ("%s PORT\n", argv[0]); return 1; } - d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, + d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, atoi (argv[1]), NULL, NULL, &ahc_echo, (void *) askpage, MHD_OPTION_END); diff --git a/src/examples/timeout.c b/src/examples/timeout.c index 5025d26b..ef18c0ee 100644 --- a/src/examples/timeout.c +++ b/src/examples/timeout.c @@ -38,7 +38,7 @@ main (int argc, { struct MHD_Daemon *daemon; - daemon = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION, + daemon = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD, PORT, NULL, NULL, &answer_to_connection, NULL,