diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-10-06 13:28:50 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-10-10 11:54:29 +0300 |
commit | 8fea3c91926e00a8810ac3e68d9d5a24ce5cc823 (patch) | |
tree | 76c200143c7e8e75280b730bbafcdd3c2855d89b | |
parent | 4237407f817a7ff463fca73da3bbc76947d03a53 (diff) | |
download | libmicrohttpd-8fea3c91926e00a8810ac3e68d9d5a24ce5cc823.tar.gz libmicrohttpd-8fea3c91926e00a8810ac3e68d9d5a24ce5cc823.zip |
daemon: fixed delayed notification callback in thread-per-connection mode
-rw-r--r-- | src/microhttpd/daemon.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 6f7bfb58..a9164341 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -6873,8 +6873,9 @@ MHD_start_daemon_va (unsigned int flags, | |||
6873 | } | 6873 | } |
6874 | #endif | 6874 | #endif |
6875 | 6875 | ||
6876 | if ( (NULL != daemon->notify_completed) && | 6876 | if ( (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) |
6877 | (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) ) | 6877 | && ((NULL != daemon->notify_completed) |
6878 | || (NULL != daemon->notify_connection)) ) | ||
6878 | *pflags |= MHD_USE_ITC; /* requires ITC */ | 6879 | *pflags |= MHD_USE_ITC; /* requires ITC */ |
6879 | 6880 | ||
6880 | #ifndef NDEBUG | 6881 | #ifndef NDEBUG |