Browse Source

Make sure socket buffer size no larger than max chunk size

pull/2365/head
Max Lv 6 years ago
parent
commit
38e83d6b5d
1 changed files with 1 additions and 1 deletions
  1. 2
      src/netutils.h

2
src/netutils.h

@ -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;

Loading…
Cancel
Save