diff options
Diffstat (limited to 'src/daemon/connection_https.c')
-rw-r--r-- | src/daemon/connection_https.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/connection_https.c b/src/daemon/connection_https.c index 1330c3a8..539b8de5 100644 --- a/src/daemon/connection_https.c +++ b/src/daemon/connection_https.c | |||
@@ -47,7 +47,7 @@ run_tls_handshake (struct MHD_Connection *connection) | |||
47 | { | 47 | { |
48 | int ret; | 48 | int ret; |
49 | 49 | ||
50 | connection->last_activity = time (NULL); | 50 | connection->last_activity = MHD_monotonic_time(); |
51 | if (connection->state == MHD_TLS_CONNECTION_INIT) | 51 | if (connection->state == MHD_TLS_CONNECTION_INIT) |
52 | { | 52 | { |
53 | ret = gnutls_handshake (connection->tls_session); | 53 | ret = gnutls_handshake (connection->tls_session); |
@@ -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) && (time (NULL) - timeout > connection->last_activity)) | 141 | if ( (timeout != 0) && (MHD_monotonic_time() - timeout > 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) |