comparison runopts.h @ 939:a0819ecfee0b

Make -K keepalive behave like OpenSSH's ServerAliveInterval
author Matt Johnston <matt@ucc.asn.au>
date Wed, 09 Jul 2014 00:15:20 +0800
parents f4bb964c8678
children 17d874ae93a1
comparison
equal deleted inserted replaced
938:c88dce72f6d2 939:a0819ecfee0b
35 35
36 #if defined(ENABLE_SVR_REMOTETCPFWD) || defined(ENABLE_CLI_LOCALTCPFWD) 36 #if defined(ENABLE_SVR_REMOTETCPFWD) || defined(ENABLE_CLI_LOCALTCPFWD)
37 int listen_fwd_all; 37 int listen_fwd_all;
38 #endif 38 #endif
39 unsigned int recv_window; 39 unsigned int recv_window;
40 time_t keepalive_secs; 40 time_t keepalive_secs; /* Time between sending keepalives. 0 is off */
41 time_t idle_timeout_secs; 41 time_t idle_timeout_secs; /* Exit if no traffic is sent/received in this time */
42 42
43 #ifndef DISABLE_ZLIB 43 #ifndef DISABLE_ZLIB
44 /* TODO: add a commandline flag. Currently this is on by default if compression 44 /* TODO: add a commandline flag. Currently this is on by default if compression
45 * is compiled in, but disabled for a client's non-final multihop stages. (The 45 * is compiled in, but disabled for a client's non-final multihop stages. (The
46 * intermediate stages are compressed streams, so are uncompressible. */ 46 * intermediate stages are compressed streams, so are uncompressible. */