comparison 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
comparison
equal deleted inserted replaced
1833:870f6e386a0b 1834:94dc11094e26
194 #define TRANS_MAX_WINDOW 500000000 /* 500MB is sufficient, stopping overflow */ 194 #define TRANS_MAX_WINDOW 500000000 /* 500MB is sufficient, stopping overflow */
195 #define TRANS_MAX_WIN_INCR 500000000 /* overflow prevention */ 195 #define TRANS_MAX_WIN_INCR 500000000 /* overflow prevention */
196 196
197 #define RECV_WINDOWEXTEND (opts.recv_window / 3) /* We send a "window extend" every 197 #define RECV_WINDOWEXTEND (opts.recv_window / 3) /* We send a "window extend" every
198 RECV_WINDOWEXTEND bytes */ 198 RECV_WINDOWEXTEND bytes */
199 #define MAX_RECV_WINDOW (1024*1024) /* 1 MB should be enough */ 199 #define MAX_RECV_WINDOW (10*1024*1024) /* 10 MB should be enough */
200 200
201 #define MAX_CHANNELS 1000 /* simple mem restriction, includes each tcp/x11 201 #define MAX_CHANNELS 1000 /* simple mem restriction, includes each tcp/x11
202 connection, so can't be _too_ small */ 202 connection, so can't be _too_ small */
203 203
204 #define MAX_STRING_LEN (MAX(MAX_CMD_LEN, 2400)) /* Sun SSH needs 2400 for algos, 204 #define MAX_STRING_LEN (MAX(MAX_CMD_LEN, 2400)) /* Sun SSH needs 2400 for algos,