Make sure socket buffer size no larger than max chunk size

This commit is contained in:
Max Lv
2019-04-30 09:34:31 +08:00
parent a7291ea725
commit 38e83d6b5d
+1 -1
View File
@@ -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;