aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/daemon/connection_https.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 927ce53d..11a5d360 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
1Mon Mar 4 13:45:35 CET 2013
2 Fix dropping of SSL connections if uptime is less than
3 MHD_OPTION_CONNECTION_TIMEOUT due to integer underflow (#2802). -greed
4
1Fri Mar 1 01:11:57 CET 2013 5Fri Mar 1 01:11:57 CET 2013
2 Fully initialize cleanup mutex struct for each thread. -Ulion 6 Fully initialize cleanup mutex struct for each thread (#2803). -Ulion
3 7
4Wed Feb 6 01:51:52 CET 2013 8Wed Feb 6 01:51:52 CET 2013
5 Releasing libmicrohttpd 0.9.25. -CG 9 Releasing libmicrohttpd 0.9.25. -CG
diff --git a/src/daemon/connection_https.c b/src/daemon/connection_https.c
index 539b8de5..b0be3ced 100644
--- a/src/daemon/connection_https.c
+++ b/src/daemon/connection_https.c
@@ -138,7 +138,7 @@ MHD_tls_connection_handle_idle (struct MHD_Connection *connection)
138 __FUNCTION__, MHD_state_to_string (connection->state)); 138 __FUNCTION__, MHD_state_to_string (connection->state));
139#endif 139#endif
140 timeout = connection->connection_timeout; 140 timeout = connection->connection_timeout;
141 if ( (timeout != 0) && (MHD_monotonic_time() - timeout > connection->last_activity)) 141 if ( (timeout != 0) && (timeout <= (MHD_monotonic_time() - connection->last_activity)))
142 MHD_connection_close (connection, 142 MHD_connection_close (connection,
143 MHD_REQUEST_TERMINATED_TIMEOUT_REACHED); 143 MHD_REQUEST_TERMINATED_TIMEOUT_REACHED);
144 switch (connection->state) 144 switch (connection->state)