Mercurial > dropbear
diff sysoptions.h @ 1834:94dc11094e26
Increase max window size to 10MB, fallback rather than
exiting if an invalid value is given.
author | Matt Johnston <matt@codeconstruct.com.au> |
---|---|
date | Tue, 12 Oct 2021 23:32:10 +0800 |
parents | a974a80f5f44 |
children | 35d504d59c05 |
line wrap: on
line diff
--- a/sysoptions.h Tue Oct 12 23:31:09 2021 +0800 +++ b/sysoptions.h Tue Oct 12 23:32:10 2021 +0800 @@ -196,7 +196,7 @@ #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 */