[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] branch master updated: MHD_connection_updat
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] branch master updated: MHD_connection_update_event_loop_info(): do not update states of suspended connections |
Date: |
Thu, 11 May 2017 21:51:22 +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 858483b5 MHD_connection_update_event_loop_info(): do not update states
of suspended connections
858483b5 is described below
commit 858483b5bea9ca30f3384129f956664bc0282e61
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Thu May 11 22:51:00 2017 +0300
MHD_connection_update_event_loop_info(): do not update states of suspended
connections
---
src/microhttpd/connection.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index a65757e3..958bf2ef 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1458,6 +1458,9 @@ transmit_error_response (struct MHD_Connection
*connection,
static void
MHD_connection_update_event_loop_info (struct MHD_Connection *connection)
{
+ /* Do not update states of suspended connection */
+ if (connection->suspended)
+ return; /* States will be updated after resume. */
while (1)
{
#if DEBUG_STATES
@@ -1510,9 +1513,7 @@ MHD_connection_update_event_loop_info (struct
MHD_Connection *connection)
{
if ((MHD_YES != try_grow_read_buffer (connection)) &&
(0 != (connection->daemon->options &
- MHD_USE_INTERNAL_POLLING_THREAD)) &&
- (! connection->suspended) &&
- (! connection->resuming))
+ MHD_USE_INTERNAL_POLLING_THREAD)))
{
/* failed to grow the read buffer, and the
client which is supposed to handle the
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [libmicrohttpd] branch master updated: MHD_connection_update_event_loop_info(): do not update states of suspended connections,
gnunet <=