Skip to content

Commit

Permalink
Make sure socket buffer size no larger than max chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed Apr 30, 2019
1 parent a7291ea commit 38e83d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 38e83d6

Please sign in to comment.