gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] branch master updated: resume_suspended_con


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] branch master updated: resume_suspended_connections(): fixed assert at daemon shutdown.
Date: Sat, 30 Sep 2017 18:25:53 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new e5892137 resume_suspended_connections(): fixed assert at daemon 
shutdown.
e5892137 is described below

commit e58921377a4017a5549cb28877fed6e6cc2a6959
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sat Sep 30 19:24:42 2017 +0300

    resume_suspended_connections(): fixed assert at daemon shutdown.
---
 src/microhttpd/daemon.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 7d4daa73..3bf151bb 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -2671,9 +2671,12 @@ resume_suspended_connections (struct MHD_Daemon *daemon)
   MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex);
 
   if (daemon->resuming)
-    prev = daemon->suspended_connections_tail;
+    {
+      prev = daemon->suspended_connections_tail;
+      /* During shutdown check for resuming is forced. */
+      mhd_assert((NULL != prev) || (daemon->shutdown));
+    }
 
-  mhd_assert(NULL != prev);
   daemon->resuming = false;
 
   while (NULL != (pos = prev))

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



reply via email to

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