[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 03/04: Fixed reset of timeout timer on resu
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 03/04: Fixed reset of timeout timer on resumed connections. |
Date: |
Thu, 16 Mar 2017 20:44:21 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 0a0533358b6d60df75fc670ffe2346dcb1d24e45
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Thu Mar 16 22:31:34 2017 +0300
Fixed reset of timeout timer on resumed connections.
---
src/microhttpd/daemon.c | 4 ++++
1 file changed, 4 insertions(+)
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)
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,
--
To stop receiving notification emails like this one, please contact
address@hidden