dropbear: add options SSHKeepAlive and IdleTimeout.
authorFelix Fietkau <nbd@openwrt.org>
Sat, 29 Mar 2014 17:05:35 +0000 (17:05 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 29 Mar 2014 17:05:35 +0000 (17:05 +0000)
commit3318cd649d4d7f674021d356533d2ac9568cca0f
tree2c43817554cd176de779467df4bd83d8722a808b
parent42137904a40d44364354a3001a765092dacd8ee0
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>
SVN-Revision: 40299
package/network/services/dropbear/files/dropbear.init