[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 04/05: cleanup_connection(): fixed cleanup
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 04/05: cleanup_connection(): fixed cleanup of suspended connection |
Date: |
Sun, 21 May 2017 17:56:15 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit a7b6407cc25d864cb5ce997d6dc693b6d0d2b223
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun May 21 17:43:14 2017 +0300
cleanup_connection(): fixed cleanup of suspended connection
---
src/microhttpd/connection.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 5fdc6837..2db85685 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -2834,17 +2834,6 @@ cleanup_connection (struct MHD_Connection *connection)
connection->response = NULL;
}
MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex);
- if (0 == (daemon->options & MHD_USE_THREAD_PER_CONNECTION))
- {
- if (connection->connection_timeout == daemon->connection_timeout)
- XDLL_remove (daemon->normal_timeout_head,
- daemon->normal_timeout_tail,
- connection);
- else
- XDLL_remove (daemon->manual_timeout_head,
- daemon->manual_timeout_tail,
- connection);
- }
if (connection->suspended)
{
DLL_remove (daemon->suspended_connections_head,
@@ -2854,6 +2843,17 @@ cleanup_connection (struct MHD_Connection *connection)
}
else
{
+ if (0 == (daemon->options & MHD_USE_THREAD_PER_CONNECTION))
+ {
+ if (connection->connection_timeout == daemon->connection_timeout)
+ XDLL_remove (daemon->normal_timeout_head,
+ daemon->normal_timeout_tail,
+ connection);
+ else
+ XDLL_remove (daemon->manual_timeout_head,
+ daemon->manual_timeout_tail,
+ connection);
+ }
DLL_remove (daemon->connections_head,
daemon->connections_tail,
connection);
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [libmicrohttpd] branch master updated (c13d2767 -> 0ecf4f26), gnunet, 2017/05/21
- [GNUnet-SVN] [libmicrohttpd] 01/05: Removed leftover comment, gnunet, 2017/05/21
- [GNUnet-SVN] [libmicrohttpd] 02/05: MHD_get_connection_info(): fixed returned 'bool' which is not a member of union MHD_ConnectionInfo, gnunet, 2017/05/21
- [GNUnet-SVN] [libmicrohttpd] 05/05: resume_suspended_connections(): do not update connection state during resuming, handle update of states in main loop as handling of locking can significantly increase complexity of processing in resume_suspended_connections(). This revert 16da279752e54c616edcb485ea637234101447c9, but resumed connections in epoll mode are processed already faster after 534d586422c6eba94ae1b193338138cb2abce3cf., gnunet, 2017/05/21
- [GNUnet-SVN] [libmicrohttpd] 04/05: cleanup_connection(): fixed cleanup of suspended connection,
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 03/05: close_connection(): added two EXTRA_CHECKs, gnunet, 2017/05/21