summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2007-07-25 15:44:50 +0000
committerMatt Johnston <matt@ucc.asn.au>2007-07-25 15:44:50 +0000
commita9a4cf873373f1cb056a8aa48b668ed0ee67df1b (patch)
tree01e719534451243c0d10b1edf239f0a82d762444 /debian
parentfde2bbdaa535e3668064ee99eb1a498dcdd093b5 (diff)
downloaddropbear-a9a4cf873373f1cb056a8aa48b668ed0ee67df1b.tar.gz
Use the -W <windowsize> argument in startup scripts, with a default of 64kB
Diffstat (limited to 'debian')
-rw-r--r--debian/dropbear.init2
-rw-r--r--debian/dropbear.postinst4
2 files changed, 5 insertions, 1 deletions
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