diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-03-10 20:04:43 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-03-10 20:04:43 +0300 |
commit | defb4e4d7bb7fcdab4db921864019dcd38a2cf1a (patch) | |
tree | 15fe527276351be15eb71925ee0e4e0a7b946c9e /src/microhttpd/daemon.c | |
parent | 9174eb844bb2a6a23e4fd18c78c5b9ca84a0072c (diff) | |
download | libmicrohttpd-defb4e4d7bb7fcdab4db921864019dcd38a2cf1a.tar.gz libmicrohttpd-defb4e4d7bb7fcdab4db921864019dcd38a2cf1a.zip |
Fixed reset timeout on connection resume in thread-per-connection mode.
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index f25ccd4d..895f14f6 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -1655,12 +1655,12 @@ thread_main_handle_connection (void *data) | |||
1655 | #else /* ! HAVE_POLL */ | 1655 | #else /* ! HAVE_POLL */ |
1656 | const int use_poll = MHD_NO; | 1656 | const int use_poll = MHD_NO; |
1657 | #endif /* ! HAVE_POLL */ | 1657 | #endif /* ! HAVE_POLL */ |
1658 | bool was_suspended = false; | ||
1658 | 1659 | ||
1659 | while ( (! daemon->shutdown) && | 1660 | while ( (! daemon->shutdown) && |
1660 | (MHD_CONNECTION_CLOSED != con->state) ) | 1661 | (MHD_CONNECTION_CLOSED != con->state) ) |
1661 | { | 1662 | { |
1662 | const unsigned int timeout = daemon->connection_timeout; | 1663 | const unsigned int timeout = daemon->connection_timeout; |
1663 | bool was_suspended = false; | ||
1664 | #ifdef UPGRADE_SUPPORT | 1664 | #ifdef UPGRADE_SUPPORT |
1665 | struct MHD_UpgradeResponseHandle * const urh = con->urh; | 1665 | struct MHD_UpgradeResponseHandle * const urh = con->urh; |
1666 | #else /* ! UPGRADE_SUPPORT */ | 1666 | #else /* ! UPGRADE_SUPPORT */ |