mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-25 18:23:42 +00:00
Make sure socket buffer size no larger than max chunk size
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@
|
||||
#define MAX_HOSTNAME_LEN 256 // FQCN <= 255 characters
|
||||
#define MAX_PORT_STR_LEN 6 // PORT < 65536
|
||||
|
||||
#define SOCKET_BUF_SIZE (16 * 1024) // 16KB
|
||||
#define SOCKET_BUF_SIZE (16 * 1024 - 1) // 16383 Byte, equals to the max chunk size
|
||||
|
||||
typedef struct {
|
||||
char *host;
|
||||
|
||||
Reference in New Issue
Block a user