Displaying 2 results from an estimated 2 matches for "idletime_last".
2001 Aug 16
4
Idletimeout patch
...3 2001
+++ openssh-2.9p2/serverloop.c Thu Aug 16 14:12:14 2001
@@ -79,7 +79,8 @@
static int connection_out; /* Connection to client (output). */
static int connection_closed = 0; /* Connection to client closed. */
static u_int buffer_high; /* "Soft" max buffer size. */
-
+static time_t idletime_last=0; /* The last time something happened
+ * for idletimeout. */
/*
* This SIGCHLD kludge is used to detect when the child exits. The server
* will exit after that, as soon as forwarded connections have terminated.
@@ -193,7 +194,9 @@
struct timeval tv, *tvp;
int ret;
int client_alive_...
2001 Aug 20
1
Idletimeout patch, third attempt
...patch_15();
}
+
diff -ru openssh-2.9p2.orig/packet.c openssh-2.9p2/packet.c
--- openssh-2.9p2.orig/packet.c Fri Apr 6 02:26:33 2001
+++ openssh-2.9p2/packet.c Tue Aug 21 00:04:48 2001
@@ -121,10 +121,91 @@
/* True if SSH2 packet format is used */
int use_ssh2_packet_format = 0;
+static time_t idletime_last=0; /* The last time something happened
+ * for idletimeout. */
+static int idletimeout=0; /* The current idletimeout */
+
/* Session key information for Encryption and MAC */
Newkeys *newkeys[MODE_MAX];
void
+packet_set_idletimeout(int max_idle_seconds)
+{
+ idletimeout=max_idl...