From e767bbb41f277ebb8f477e5cda5b97a3a52b08a7 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Thu, 13 Mar 2014 23:50:09 +0800 Subject: Add new monotonic_now() wrapper so that timeouts are unaffected by system clock changes --- session.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'session.h') diff --git a/session.h b/session.h index b347700..e66fc39 100644 --- a/session.h +++ b/session.h @@ -106,7 +106,8 @@ struct sshsession { time_t connect_time; /* time the connection was established (cleared after auth once we're not - respecting AUTH_TIMEOUT any more) */ + respecting AUTH_TIMEOUT any more). + A monotonic time, not realworld */ int sock_in; int sock_out; @@ -147,10 +148,10 @@ struct sshsession { race-free signal handling */ time_t last_trx_packet_time; /* time of the last packet transmission, for - keepalive purposes */ + keepalive purposes. Not real-world clock */ time_t last_packet_time; /* time of the last packet transmission or receive, for - idle timeout purposes */ + idle timeout purposes. Not real-world clock */ /* KEX/encryption related */ -- cgit v1.2.3