libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 0a0533358b6d60df75fc670ffe2346dcb1d24e45
parent 396aab2e1190425c9085e697e502522f4e249cff
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu, 16 Mar 2017 22:31:34 +0300

Fixed reset of timeout timer on resumed connections.

Diffstat:
Msrc/microhttpd/daemon.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -2860,6 +2860,10 @@ resume_suspended_connections (struct MHD_Daemon *daemon) pos); if (0 == (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) { + /* Reset timeout timer on resume. */ + if (0 != pos->connection_timeout) + pos->last_activity = MHD_monotonic_sec_counter(); + if (pos->connection_timeout == daemon->connection_timeout) XDLL_insert (daemon->normal_timeout_head, daemon->normal_timeout_tail,