Configuration file TCPKeepAlive option does not work reliably

Björn Grönvall bg at sics.se
Wed Jan 11 02:34:20 EST 2012


Hi!

There are configuration knobs (TCPKeepAlive) to enable/disable the use of TCP keepalives both in the ssh client and server. Unfortunately some UNIX systems default to SO_KEEPALIVE=on and some to =off. This may even be settable on a per host basis (OpenBSD default net.inet.tcp.always_keepalive=1 ???).

For the TCPKeepAlive configuration knob I would like to propose changes along the lines showed in the attached patch (there is perhaps more elegant ways to do this). The patch will always set SO_KEEPALIVE according to the ssh configuration files regardless of the local UNIX TCP defaults.

If there are questions or comments I'm available on this email address bg at sics.se (I'm not on any ssh email list).

Cheers,
/b


-------------- next part --------------




More information about the openssh-unix-dev mailing list