aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-12-13 22:51:05 +0100
committerChristian Grothoff <christian@grothoff.org>2018-12-13 22:51:05 +0100
commit1619b9f051ac4694d563803ec25dad724f417ab4 (patch)
tree4f295d970789a1c1b4f8393a4d60f3b3966fc546 /src/microhttpd/connection.c
parent8a9b198d4ab3a6f47569b139343f4b52a2c9494e (diff)
downloadlibmicrohttpd-1619b9f051ac4694d563803ec25dad724f417ab4.tar.gz
libmicrohttpd-1619b9f051ac4694d563803ec25dad724f417ab4.zip
reset timeout on response being queued, needed in thread-per-connection mode if the working thread takes very long
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r--src/microhttpd/connection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index d521c036..e06ae993 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -3655,7 +3655,7 @@ MHD_connection_handle_idle (struct MHD_Connection *connection)
3655#if defined(MHD_USE_POSIX_THREADS) || defined(MHD_USE_W32_THREADS) 3655#if defined(MHD_USE_POSIX_THREADS) || defined(MHD_USE_W32_THREADS)
3656 if (NULL != connection->response->crc) 3656 if (NULL != connection->response->crc)
3657 MHD_mutex_lock_chk_ (&connection->response->mutex); 3657 MHD_mutex_lock_chk_ (&connection->response->mutex);
3658#endif 3658#endif
3659 if ( (0 == connection->response->total_size) || 3659 if ( (0 == connection->response->total_size) ||
3660 (connection->response_write_position == 3660 (connection->response_write_position ==
3661 connection->response->total_size) ) 3661 connection->response->total_size) )
@@ -4099,6 +4099,7 @@ MHD_queue_response (struct MHD_Connection *connection,
4099 } 4099 }
4100 if (! connection->in_idle) 4100 if (! connection->in_idle)
4101 (void) MHD_connection_handle_idle (connection); 4101 (void) MHD_connection_handle_idle (connection);
4102 MHD_update_last_activity_ (connection);
4102 return MHD_YES; 4103 return MHD_YES;
4103} 4104}
4104 4105