[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 04/09: MHD_cleanup_connections(): improved
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 04/09: MHD_cleanup_connections(): improved thread safety |
Date: |
Sun, 04 Jun 2017 14:08:02 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit b93ddc6b5ebb76fbe0a4beb73901ad2c4c7e8ca8
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun Jun 4 13:50:21 2017 +0300
MHD_cleanup_connections(): improved thread safety
---
src/microhttpd/daemon.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index d893e0bd..2bdd5e16 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -3195,8 +3195,6 @@ MHD_cleanup_connections (struct MHD_Daemon *daemon)
if (NULL != pos->tls_session)
gnutls_deinit (pos->tls_session);
#endif /* HTTPS_SUPPORT */
- daemon->connections--;
- daemon->at_limit = false;
/* clean up the connection */
if (NULL != daemon->notify_connection)
@@ -3247,6 +3245,8 @@ MHD_cleanup_connections (struct MHD_Daemon *daemon)
free (pos);
MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex);
+ daemon->connections--;
+ daemon->at_limit = false;
}
MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex);
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [libmicrohttpd] branch master updated (51b64e8b -> b7844230), gnunet, 2017/06/04
- [GNUnet-SVN] [libmicrohttpd] 05/09: internal_add_connection(): added missing TLS session deinit in case of failure, gnunet, 2017/06/04
- [GNUnet-SVN] [libmicrohttpd] 01/09: internal_add_connection(): change one parameter type to 'bool', gnunet, 2017/06/04
- [GNUnet-SVN] [libmicrohttpd] 04/09: MHD_cleanup_connections(): improved thread safety,
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 02/09: internal_add_connection(): cosmetics, gnunet, 2017/06/04
- [GNUnet-SVN] [libmicrohttpd] 08/09: internal_add_connection(): check for connections limit in thread-safe way, thus allowing to really use MHD_add_connection() with 'internal' polling mode, gnunet, 2017/06/04
- [GNUnet-SVN] [libmicrohttpd] 07/09: internal_add_connection(): cosmetics, gnunet, 2017/06/04
- [GNUnet-SVN] [libmicrohttpd] 09/09: MHD_add_connection(): updated doxy to reflect that per-IP-limit actually is NOT ignored. Skipping of per-IP-limit could be easily implemented by request., gnunet, 2017/06/04
- [GNUnet-SVN] [libmicrohttpd] 06/09: internal_add_connection(): improved thread safety in epoll mode with 'external' add, gnunet, 2017/06/04
- [GNUnet-SVN] [libmicrohttpd] 03/09: internal_add_connection(): minor refactoring for additional error check and minor optimization, gnunet, 2017/06/04