gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 11/31: daemon: fixed delayed notification callback in th


From: gnunet
Subject: [libmicrohttpd] 11/31: daemon: fixed delayed notification callback in thread-per-connection mode
Date: Mon, 10 Oct 2022 13:00:56 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 8fea3c91926e00a8810ac3e68d9d5a24ce5cc823
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Oct 6 13:28:50 2022 +0300

    daemon: fixed delayed notification callback in thread-per-connection mode
---
 src/microhttpd/daemon.c | 5 +++--
 1 file 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,
   }
 #endif
 
-  if ( (NULL != daemon->notify_completed) &&
-       (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) )
+  if ( (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION))
+       && ((NULL != daemon->notify_completed)
+           || (NULL != daemon->notify_connection)) )
     *pflags |= MHD_USE_ITC; /* requires ITC */
 
 #ifndef NDEBUG

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]