aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r--src/microhttpd/connection.c7
1 files 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,
1458static void 1458static void
1459MHD_connection_update_event_loop_info (struct MHD_Connection *connection) 1459MHD_connection_update_event_loop_info (struct MHD_Connection *connection)
1460{ 1460{
1461 /* Do not update states of suspended connection */
1462 if (connection->suspended)
1463 return; /* States will be updated after resume. */
1461 while (1) 1464 while (1)
1462 { 1465 {
1463#if DEBUG_STATES 1466#if DEBUG_STATES
@@ -1510,9 +1513,7 @@ MHD_connection_update_event_loop_info (struct MHD_Connection *connection)
1510 { 1513 {
1511 if ((MHD_YES != try_grow_read_buffer (connection)) && 1514 if ((MHD_YES != try_grow_read_buffer (connection)) &&
1512 (0 != (connection->daemon->options & 1515 (0 != (connection->daemon->options &
1513 MHD_USE_INTERNAL_POLLING_THREAD)) && 1516 MHD_USE_INTERNAL_POLLING_THREAD)))
1514 (! connection->suspended) &&
1515 (! connection->resuming))
1516 { 1517 {
1517 /* failed to grow the read buffer, and the 1518 /* failed to grow the read buffer, and the
1518 client which is supposed to handle the 1519 client which is supposed to handle the