search for: idletimeout_check

Displaying 2 results from an estimated 2 matches for "idletimeout_check".

2001 Aug 20
1
Idletimeout patch, third attempt
...+{ + idletimeout=max_idle_seconds; + if (max_idle_seconds>0) { + /* Initialize */ + time(&idletime_last); + } +} + +/* Called by whenever packets are sent or received. + * This function decides on which packets idletimeout should + * be reset */ +void +idletimeout_check(int type) +{ + /* No-op, if idletimeouts are not configured */ + if (idletimeout==0) return; + + /* The following packets reset idletimeout on input or output. + * Note that only actual data resets idletimeout, control packets + * do not. */ + switch(type) { + case SSH_MSG_CHANNEL...
2007 Jul 10
1
[Bug 1338] New: Idletimeout for both client and server
...(#1330) and create an easy way to have persistent ssh connections that clean up automatically. This speeds up scripts and generic admin work. Some comments: * In 2001 the code in packet.c was not organized like it is now with wrapper functions calling ssh1/ssh2 versions. I think I put calls to idletimeout_check() in the right places but I could have missed one or added too much. * For the writing case, I added an idletimeout_check() in packet_start instead of in the packet_send, assuming that packet_send will be called soon after packet_start. * If this patch is combined with the ControlPersist pa...