Skip to content
Permalink
Browse files

Make sure socket buffer size no larger than max chunk size

  • Loading branch information...
madeye committed Apr 30, 2019
1 parent a7291ea commit 38e83d6b5d4648fb87ae6680c8fa159df54c73ce
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 38e83d6

Please sign in to comment.
You can’t perform that action at this time.