From a9a4cf873373f1cb056a8aa48b668ed0ee67df1b Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Wed, 25 Jul 2007 15:44:50 +0000 Subject: Use the -W argument in startup scripts, with a default of 64kB --- debian/dropbear.init | 2 +- debian/dropbear.postinst | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/dropbear.init b/debian/dropbear.init index 7979c8d..6a0f0a1 100644 --- a/debian/dropbear.init +++ b/debian/dropbear.init @@ -48,7 +48,7 @@ case "$1" in sleep 1 start-stop-daemon --start --quiet --pidfile /var/run/"$NAME".pid \ --exec "$DAEMON" -- -d "$DROPBEAR_DSSKEY" -r "$DROPBEAR_RSAKEY" \ - -p "$DROPBEAR_PORT" $DROPBEAR_EXTRA_ARGS + -p "$DROPBEAR_PORT" -W "$DROPBEAR_RECEIVE_WINDOW" $DROPBEAR_EXTRA_ARGS echo "$NAME." ;; *) diff --git a/debian/dropbear.postinst b/debian/dropbear.postinst index 312eb05..e51e2b7 100644 --- a/debian/dropbear.postinst +++ b/debian/dropbear.postinst @@ -54,6 +54,10 @@ DROPBEAR_BANNER="" # DSS hostkey file (default: /etc/dropbear/dropbear_dss_host_key) #DROPBEAR_DSSKEY="/etc/dropbear/dropbear_dss_host_key" + +# Receive window size - this is a tradeoff between memory and +# network performance +DROPBEAR_RECEIVE_WINDOW=65536 EOT fi -- cgit v1.2.1