diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-10-29 20:37:21 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-10-29 20:37:21 +0100 |
commit | 777d5e048d02a46c535f6e53fa31cda5c5d09038 (patch) | |
tree | df7a45e6a2bad6ff5d6e4d0e72f4ebf098230a8f /src/microhttpd/daemon.c | |
parent | 533124d379d0c0e3e1efa9a4c9bcccd4e6a8bdba (diff) | |
download | libmicrohttpd-777d5e048d02a46c535f6e53fa31cda5c5d09038.tar.gz libmicrohttpd-777d5e048d02a46c535f6e53fa31cda5c5d09038.zip |
force setting MHD_USE_ITC if using thread-per-connection and notify_completed for timely notifications
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index cede2f53..cd2ca189 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -5531,9 +5531,15 @@ MHD_start_daemon_va (unsigned int flags, | |||
5531 | free (daemon); | 5531 | free (daemon); |
5532 | return NULL; | 5532 | return NULL; |
5533 | } | 5533 | } |
5534 | |||
5535 | if ( (NULL != daemon->notify_completed) && | ||
5536 | (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) ) | ||
5537 | *pflags |= MHD_USE_ITC; /* requires ITC */ | ||
5538 | |||
5534 | #ifndef NDEBUG | 5539 | #ifndef NDEBUG |
5535 | #ifdef HAVE_MESSAGES | 5540 | #ifdef HAVE_MESSAGES |
5536 | MHD_DLOG (daemon, _("Using debug build of libmicrohttpd.\n") ); | 5541 | MHD_DLOG (daemon, |
5542 | _("Using debug build of libmicrohttpd.\n") ); | ||
5537 | #endif /* HAVE_MESSAGES */ | 5543 | #endif /* HAVE_MESSAGES */ |
5538 | #endif /* ! NDEBUG */ | 5544 | #endif /* ! NDEBUG */ |
5539 | 5545 | ||