Increase max window size to 10MB, fallback rather than

exiting if an invalid value is given.
This commit is contained in:
Matt Johnston
2021-10-12 23:32:10 +08:00
parent 110b55214b
commit 043b0fbd1b
5 changed files with 25 additions and 14 deletions

View File

@@ -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 */