libmicrohttpd

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

commit 14e83908bb25ba9a202be073af1c557239d1a04e
parent f0fce31fbf101289aca24cb2e88b8eb2e9d2274d
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 25 May 2011 14:25:00 +0000

trying to fix timeout issue

Diffstat:
MChangeLog | 4++++
Msrc/daemon/connection.c | 2+-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,7 @@ +Wed May 25 14:23:20 CEST 2011 + Trying to fix stutter problem on timeout described by + David Myers on the mailinglist (5/10/2011). -CG + Fri May 20 22:11:55 CEST 2011 Fixed bug in testcase setup code causing crashes in tls_session_timeout_test on some systems. diff --git a/src/daemon/connection.c b/src/daemon/connection.c @@ -2281,7 +2281,7 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) timeout = connection->daemon->connection_timeout; if ((connection->socket_fd != -1) && (timeout != 0) && - (timeout < (time (NULL) - connection->last_activity)) ) + (timeout <= (time (NULL) - connection->last_activity)) ) { MHD_connection_close (connection, MHD_REQUEST_TERMINATED_TIMEOUT_REACHED); return MHD_NO;