diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-03-16 22:31:34 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-03-16 22:43:47 +0300 |
commit | 0a0533358b6d60df75fc670ffe2346dcb1d24e45 (patch) | |
tree | acf397cd422cd18ea43907fe6ae18676bde8cc34 | |
parent | 396aab2e1190425c9085e697e502522f4e249cff (diff) | |
download | libmicrohttpd-0a0533358b6d60df75fc670ffe2346dcb1d24e45.tar.gz libmicrohttpd-0a0533358b6d60df75fc670ffe2346dcb1d24e45.zip |
Fixed reset of timeout timer on resumed connections.
-rw-r--r-- | src/microhttpd/daemon.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index a93a2ac0..23c48be8 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -2860,6 +2860,10 @@ resume_suspended_connections (struct MHD_Daemon *daemon) | |||
2860 | pos); | 2860 | pos); |
2861 | if (0 == (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) | 2861 | if (0 == (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) |
2862 | { | 2862 | { |
2863 | /* Reset timeout timer on resume. */ | ||
2864 | if (0 != pos->connection_timeout) | ||
2865 | pos->last_activity = MHD_monotonic_sec_counter(); | ||
2866 | |||
2863 | if (pos->connection_timeout == daemon->connection_timeout) | 2867 | if (pos->connection_timeout == daemon->connection_timeout) |
2864 | XDLL_insert (daemon->normal_timeout_head, | 2868 | XDLL_insert (daemon->normal_timeout_head, |
2865 | daemon->normal_timeout_tail, | 2869 | daemon->normal_timeout_tail, |