aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/examples/authorization_example.c2
-rw-r--r--src/examples/chunked_example.c6
-rw-r--r--src/examples/digest_auth_example.c2
-rw-r--r--src/examples/fileserver_example.c2
-rw-r--r--src/examples/fileserver_example_dirs.c2
-rw-r--r--src/examples/https_fileserver_example.c2
-rw-r--r--src/examples/minimal_example.c6
-rw-r--r--src/examples/minimal_example_comet.c2
-rw-r--r--src/examples/querystring_example.c2
-rw-r--r--src/examples/refuse_post_example.c2
-rw-r--r--src/examples/timeout.c2
11 files changed, 15 insertions, 15 deletions
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)
106 return 1; 106 return 1;
107 } 107 }
108 108
109 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, 109 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
110 atoi (argv[1]), 110 atoi (argv[1]),
111 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END); 111 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END);
112 if (d == NULL) 112 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)
78 printf ("%s PORT\n", argv[0]); 78 printf ("%s PORT\n", argv[0]);
79 return 1; 79 return 1;
80 } 80 }
81 d = MHD_start_daemon (// MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, 81 d = MHD_start_daemon (// MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL,
82 MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, 82 MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
83 // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG | MHD_USE_POLL, 83 // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL,
84 // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, 84 // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
85 atoi (argv[1]), 85 atoi (argv[1]),
86 NULL, NULL, &ahc_echo, NULL, 86 NULL, NULL, &ahc_echo, NULL,
87 MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120, 87 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)
123 off += len; 123 off += len;
124 } 124 }
125 (void) close(fd); 125 (void) close(fd);
126 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, 126 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
127 atoi (argv[1]), 127 atoi (argv[1]),
128 NULL, NULL, &ahc_echo, PAGE, 128 NULL, NULL, &ahc_echo, PAGE,
129 MHD_OPTION_DIGEST_AUTH_RANDOM, sizeof(rnd), rnd, 129 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)
129 printf ("%s PORT\n", argv[0]); 129 printf ("%s PORT\n", argv[0]);
130 return 1; 130 return 1;
131 } 131 }
132 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, 132 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
133 atoi (argv[1]), 133 atoi (argv[1]),
134 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END); 134 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END);
135 if (d == NULL) 135 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)
190 printf ("%s PORT\n", argv[0]); 190 printf ("%s PORT\n", argv[0]);
191 return 1; 191 return 1;
192 } 192 }
193 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, 193 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
194 atoi (argv[1]), 194 atoi (argv[1]),
195 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END); 195 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END);
196 if (NULL == d) 196 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)
191 /* TODO check if this is truly necessary - disallow usage of the blocking /dev/random */ 191 /* TODO check if this is truly necessary - disallow usage of the blocking /dev/random */
192 /* gcry_control(GCRYCTL_ENABLE_QUICK_RANDOM, 0); */ 192 /* gcry_control(GCRYCTL_ENABLE_QUICK_RANDOM, 0); */
193 TLS_daemon = 193 TLS_daemon =
194 MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG | 194 MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG |
195 MHD_USE_TLS, atoi (argv[1]), NULL, NULL, &http_ahc, 195 MHD_USE_TLS, atoi (argv[1]), NULL, NULL, &http_ahc,
196 NULL, MHD_OPTION_CONNECTION_TIMEOUT, 256, 196 NULL, MHD_OPTION_CONNECTION_TIMEOUT, 256,
197 MHD_OPTION_HTTPS_MEM_KEY, key_pem, 197 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)
67 printf ("%s PORT\n", argv[0]); 67 printf ("%s PORT\n", argv[0]);
68 return 1; 68 return 1;
69 } 69 }
70 d = MHD_start_daemon (// MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, 70 d = MHD_start_daemon (// MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL,
71 MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, 71 MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
72 // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG | MHD_USE_POLL, 72 // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL,
73 // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, 73 // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
74 atoi (argv[1]), 74 atoi (argv[1]),
75 NULL, NULL, &ahc_echo, PAGE, 75 NULL, NULL, &ahc_echo, PAGE,
76 MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120, 76 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)
74 printf ("%s PORT\n", argv[0]); 74 printf ("%s PORT\n", argv[0]);
75 return 1; 75 return 1;
76 } 76 }
77 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, 77 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
78 atoi (argv[1]), 78 atoi (argv[1]),
79 NULL, NULL, &ahc_echo, NULL, MHD_OPTION_END); 79 NULL, NULL, &ahc_echo, NULL, MHD_OPTION_END);
80 if (d == NULL) 80 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)
79 printf ("%s PORT\n", argv[0]); 79 printf ("%s PORT\n", argv[0]);
80 return 1; 80 return 1;
81 } 81 }
82 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, 82 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
83 atoi (argv[1]), 83 atoi (argv[1]),
84 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END); 84 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END);
85 if (d == NULL) 85 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)
86 printf ("%s PORT\n", argv[0]); 86 printf ("%s PORT\n", argv[0]);
87 return 1; 87 return 1;
88 } 88 }
89 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG, 89 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
90 atoi (argv[1]), 90 atoi (argv[1]),
91 NULL, NULL, &ahc_echo, (void *) askpage, 91 NULL, NULL, &ahc_echo, (void *) askpage,
92 MHD_OPTION_END); 92 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,
38{ 38{
39 struct MHD_Daemon *daemon; 39 struct MHD_Daemon *daemon;
40 40
41 daemon = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION, 41 daemon = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD,
42 PORT, 42 PORT,
43 NULL, NULL, 43 NULL, NULL,
44 &answer_to_connection, NULL, 44 &answer_to_connection, NULL,