# HG changeset patch # User Matt Johnston # Date 1185378290 0 # Node ID c23c7f0f594c523a247bfb0e1706d3309e34855c # Parent 3e6c536bc02381a0823468add4535439ea9a01a7 Use the -W argument in startup scripts, with a default of 64kB diff -r 3e6c536bc023 -r c23c7f0f594c debian/dropbear.init --- a/debian/dropbear.init Wed Jul 25 15:44:25 2007 +0000 +++ b/debian/dropbear.init Wed Jul 25 15:44:50 2007 +0000 @@ -48,7 +48,7 @@ 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 -r 3e6c536bc023 -r c23c7f0f594c debian/dropbear.postinst --- a/debian/dropbear.postinst Wed Jul 25 15:44:25 2007 +0000 +++ b/debian/dropbear.postinst Wed Jul 25 15:44:50 2007 +0000 @@ -54,6 +54,10 @@ # 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