commit 858483b5bea9ca30f3384129f956664bc0282e61 parent 16da279752e54c616edcb485ea637234101447c9 Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Thu, 11 May 2017 22:51:00 +0300 MHD_connection_update_event_loop_info(): do not update states of suspended connections Diffstat:
| M | src/microhttpd/connection.c | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git 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