diff process-packet.c @ 493:6cd2152aae0b idle-timeout

Idle-timeout patch from Farrell Aultman, need to figure whether to only account DATA packets and whether server->client data makes sense too.
author Matt Johnston <matt@ucc.asn.au>
date Mon, 22 Sep 2008 15:28:52 +0000
parents 7e43f5e473b9
children
line wrap: on
line diff
--- a/process-packet.c	Mon Sep 22 14:13:44 2008 +0000
+++ b/process-packet.c	Mon Sep 22 15:28:52 2008 +0000
@@ -70,6 +70,7 @@
 			dropbear_close("Disconnect received");
 	}
 
+	ses.last_recv_packet_time = time(NULL);
 
 	/* This applies for KEX, where the spec says the next packet MUST be
 	 * NEWKEYS */