Fix bug with large TCP messages
Fixed buffer size definition so that large TCP messages no longer overflow the buffer
This commit is contained in:
parent
16c20b1a93
commit
b578dd5bc4
1 changed files with 1 additions and 2 deletions
|
@ -122,8 +122,7 @@ a lot of data that needs to be copied, this should be set high. */
|
||||||
/* ---------- Pbuf options ---------- */
|
/* ---------- Pbuf options ---------- */
|
||||||
/* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */
|
/* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */
|
||||||
#define PBUF_POOL_SIZE 6
|
#define PBUF_POOL_SIZE 6
|
||||||
/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */
|
/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. DO NOT DEFINE IT HERE, the correct value needs to be calculated from TCP_MSS. */
|
||||||
#define PBUF_POOL_BUFSIZE 512
|
|
||||||
|
|
||||||
/** ETH_PAD_SIZE: number of bytes added before the ethernet header to ensure
|
/** ETH_PAD_SIZE: number of bytes added before the ethernet header to ensure
|
||||||
* alignment of payload after that header. Since the header is 14 bytes long,
|
* alignment of payload after that header. Since the header is 14 bytes long,
|
||||||
|
|
Reference in a new issue