diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/connection_call_handlers.c | 4 | ||||
-rw-r--r-- | src/microhttpd/connection.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/connection_call_handlers.c b/src/lib/connection_call_handlers.c index aa082ebb..5f2b9d24 100644 --- a/src/lib/connection_call_handlers.c +++ b/src/lib/connection_call_handlers.c | |||
@@ -3582,8 +3582,8 @@ MHD_request_handle_idle_ (struct MHD_Request *request) | |||
3582 | time_t timeout; | 3582 | time_t timeout; |
3583 | timeout = connection->connection_timeout; | 3583 | timeout = connection->connection_timeout; |
3584 | if ( (0 != timeout) && | 3584 | if ( (0 != timeout) && |
3585 | (timeout < (MHD_monotonic_sec_counter () | 3585 | (timeout <= (MHD_monotonic_sec_counter () |
3586 | - connection->last_activity)) ) | 3586 | - connection->last_activity)) ) |
3587 | { | 3587 | { |
3588 | MHD_connection_close_ (connection, | 3588 | MHD_connection_close_ (connection, |
3589 | MHD_REQUEST_TERMINATED_TIMEOUT_REACHED); | 3589 | MHD_REQUEST_TERMINATED_TIMEOUT_REACHED); |
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index f9852a06..8de231aa 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -4306,8 +4306,8 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
4306 | time_t timeout; | 4306 | time_t timeout; |
4307 | timeout = connection->connection_timeout; | 4307 | timeout = connection->connection_timeout; |
4308 | if ( (0 != timeout) && | 4308 | if ( (0 != timeout) && |
4309 | (timeout < (MHD_monotonic_sec_counter () | 4309 | (timeout <= (MHD_monotonic_sec_counter () |
4310 | - connection->last_activity)) ) | 4310 | - connection->last_activity)) ) |
4311 | { | 4311 | { |
4312 | MHD_connection_close_ (connection, | 4312 | MHD_connection_close_ (connection, |
4313 | MHD_REQUEST_TERMINATED_TIMEOUT_REACHED); | 4313 | MHD_REQUEST_TERMINATED_TIMEOUT_REACHED); |