summaryrefslogtreecommitdiffhomepage
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
commit876e7b99d4116d0df9ff13ced9b91498a8a6bc11 (patch)
tree01e719534451243c0d10b1edf239f0a82d762444 /debian
parente3e4445dc1e86652d1e855bd320f8077523d2d59 (diff)
Use the -W <windowsize> argument in startup scripts, with a default of 64kB
--HG-- extra : convert_revision : bbc5073267b8af362e59a46bc8328c03cfd4bd4c
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