Mercurial > dropbear
comparison sysoptions.h @ 1169:41a5820cab8b
Increase channel limit to 1000
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 19 Nov 2015 23:53:06 +0800 |
parents | 809feaa9408f |
children | 1637dbd26212 |
comparison
equal
deleted
inserted
replaced
1168:509cf5df51c6 | 1169:41a5820cab8b |
---|---|
148 | 148 |
149 #define RECV_WINDOWEXTEND (opts.recv_window / 3) /* We send a "window extend" every | 149 #define RECV_WINDOWEXTEND (opts.recv_window / 3) /* We send a "window extend" every |
150 RECV_WINDOWEXTEND bytes */ | 150 RECV_WINDOWEXTEND bytes */ |
151 #define MAX_RECV_WINDOW (1024*1024) /* 1 MB should be enough */ | 151 #define MAX_RECV_WINDOW (1024*1024) /* 1 MB should be enough */ |
152 | 152 |
153 #define MAX_CHANNELS 100 /* simple mem restriction, includes each tcp/x11 | 153 #define MAX_CHANNELS 1000 /* simple mem restriction, includes each tcp/x11 |
154 connection, so can't be _too_ small */ | 154 connection, so can't be _too_ small */ |
155 | 155 |
156 #define MAX_STRING_LEN (MAX(MAX_CMD_LEN, 2400)) /* Sun SSH needs 2400 for algos, | 156 #define MAX_STRING_LEN (MAX(MAX_CMD_LEN, 2400)) /* Sun SSH needs 2400 for algos, |
157 MAX_CMD_LEN is usually longer */ | 157 MAX_CMD_LEN is usually longer */ |
158 | 158 |