summaryrefslogtreecommitdiff
path: root/sysoptions.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@codeconstruct.com.au>2021-10-12 23:32:10 +0800
committerMatt Johnston <matt@codeconstruct.com.au>2021-10-12 23:32:10 +0800
commit93ca336040b1c7828b3f5de349b8f31c0b3c7f03 (patch)
treec46b13dc5bc3572721970339c5f87fa0effba985 /sysoptions.h
parent05b7e44787f3e142cb37ae9c2f0a6b65ea54b341 (diff)
downloaddropbear-93ca336040b1c7828b3f5de349b8f31c0b3c7f03.tar.gz
Increase max window size to 10MB, fallback rather than
exiting if an invalid value is given.
Diffstat (limited to 'sysoptions.h')
-rw-r--r--sysoptions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysoptions.h b/sysoptions.h
index c36e8e0..51c4bc9 100644
--- a/sysoptions.h
+++ b/sysoptions.h
@@ -196,7 +196,7 @@ If you test it please contact the Dropbear author */
#define RECV_WINDOWEXTEND (opts.recv_window / 3) /* We send a "window extend" every
RECV_WINDOWEXTEND bytes */
-#define MAX_RECV_WINDOW (1024*1024) /* 1 MB should be enough */
+#define MAX_RECV_WINDOW (10*1024*1024) /* 10 MB should be enough */
#define MAX_CHANNELS 1000 /* simple mem restriction, includes each tcp/x11
connection, so can't be _too_ small */