mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-28 04:09:31 +03:00
thread-per-connection: do not cache connection timeout
The timeout value could be updated by application
This commit is contained in:
@@ -1922,7 +1922,6 @@ thread_main_handle_connection (void *data)
|
||||
while ( (! daemon->shutdown) &&
|
||||
(MHD_CONNECTION_CLOSED != con->state) )
|
||||
{
|
||||
uint64_t timeout = con->connection_timeout_ms;
|
||||
#ifdef UPGRADE_SUPPORT
|
||||
struct MHD_UpgradeResponseHandle *const urh = con->urh;
|
||||
#else /* ! UPGRADE_SUPPORT */
|
||||
@@ -2016,7 +2015,7 @@ thread_main_handle_connection (void *data)
|
||||
tvp = &tv;
|
||||
}
|
||||
if ( (NULL == tvp) &&
|
||||
(timeout > 0) )
|
||||
(con->connection_timeout_ms > 0) )
|
||||
{
|
||||
const uint64_t mseconds_left = connection_get_wait (con);
|
||||
#if (SIZEOF_UINT64_T - 2) >= SIZEOF_STRUCT_TIMEVAL_TV_SEC
|
||||
|
||||
Reference in New Issue
Block a user