diff session.h @ 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 738313e73b1c
children
line wrap: on
line diff
--- a/session.h	Mon Sep 22 14:13:44 2008 +0000
+++ b/session.h	Mon Sep 22 15:28:52 2008 +0000
@@ -134,12 +134,16 @@
 
 	unsigned char lastpacket; /* What the last received packet type was */
 	
-    int signal_pipe[2]; /* stores endpoints of a self-pipe used for
+	int signal_pipe[2]; /* stores endpoints of a self-pipe used for
 						   race-free signal handling */
 						
 	time_t last_packet_time; /* time of the last packet transmission, for
 							keepalive purposes */
 
+	time_t last_recv_packet_time; /* time of the last packet received, for
+									 idle timeout purposes */
+
+
 	/* KEX/encryption related */
 	struct KEXState kexstate;
 	struct key_context *keys;