gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] GNU libmicrohttpd branch master updated. 51


From: gitolite
Subject: [GNUnet-SVN] [libmicrohttpd] GNU libmicrohttpd branch master updated. 513f49394e9ec361692265d40501c287e719a9ee
Date: Fri, 14 Oct 2016 16:48:09 +0200 (CEST)

The branch, master has been updated
       via  513f49394e9ec361692265d40501c287e719a9ee (commit)
      from  a90099030e9aa0ec216e6b5cf439c265d8a43376 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 513f49394e9ec361692265d40501c287e719a9ee
Author: Evgeny Grin (Karlson2k) <address@hidden>
Date:   Fri Oct 14 17:47:21 2016 +0300

    MHD_cleanup_connections(): reduce time of lock

-----------------------------------------------------------------------

Summary of changes:
 src/microhttpd/daemon.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index a5b0769..722937e 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -2505,6 +2505,10 @@ MHD_cleanup_connections (struct MHD_Daemon *daemon)
       DLL_remove (daemon->cleanup_head,
                  daemon->cleanup_tail,
                  pos);
+
+      if (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION))
+        MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex);
+
       if ( (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) &&
           (MHD_NO == pos->thread_joined) )
        {
@@ -2570,6 +2574,9 @@ MHD_cleanup_connections (struct MHD_Daemon *daemon)
       if (NULL != pos->addr)
        free (pos->addr);
       free (pos);
+
+      if (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION))
+        MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex);
     }
   if (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION))
     MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex);


hooks/post-receive
-- 
GNU libmicrohttpd



reply via email to

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