From 93ca336040b1c7828b3f5de349b8f31c0b3c7f03 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Tue, 12 Oct 2021 23:32:10 +0800 Subject: Increase max window size to 10MB, fallback rather than exiting if an invalid value is given. --- sysoptions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysoptions.h') 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 */ -- cgit v1.2.1