dropbear: add options SSHKeepAlive and IdleTimeout.
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 29 Mar 2014 17:05:35 +0000 (17:05 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 29 Mar 2014 17:05:35 +0000 (17:05 +0000)
commit1f28f63f248f9a13bb51612e5a90edb333f6d244
tree2c43817554cd176de779467df4bd83d8722a808b
parenta31d36b473e15e210263bd67cbf2a085619892f5
dropbear: add options SSHKeepAlive and IdleTimeout.

Without timeout mechanism, if ssh client disconnected without sending
FIN or RST, forked dropbear servers would hang there for
KEX_RETRY_TIMEOUT seconds (8 hours).

TCP keepalive is not implemented in dropbear yet, thus the name
SSHKeepAlive.

300 seconds in this patch is selected from the default value of
ServerAliveInterval for Debian ssh client (See man ssh_config).

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40299 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/network/services/dropbear/files/dropbear.init