gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] 02/02: force setting MHD_USE_ITC if using t


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 02/02: force setting MHD_USE_ITC if using thread-per-connection and notify_completed for timely notifications
Date: Mon, 29 Oct 2018 20:37:25 +0100

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

grothoff pushed a commit to branch master
in repository libmicrohttpd.

commit 777d5e048d02a46c535f6e53fa31cda5c5d09038
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Oct 29 20:37:21 2018 +0100

    force setting MHD_USE_ITC if using thread-per-connection and 
notify_completed for timely notifications
---
 src/microhttpd/daemon.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

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,
       free (daemon);
       return NULL;
     }
+
+  if ( (NULL != daemon->notify_completed) &&
+       (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) )
+    *pflags |= MHD_USE_ITC; /* requires ITC */    
+  
 #ifndef NDEBUG
 #ifdef HAVE_MESSAGES
-  MHD_DLOG (daemon,  _("Using debug build of libmicrohttpd.\n") );
+  MHD_DLOG (daemon,
+           _("Using debug build of libmicrohttpd.\n") );
 #endif /* HAVE_MESSAGES */
 #endif /* ! NDEBUG */
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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