From 1e9fc9f8f1415c2d6f0cd5821e146e8fa3c2f73d Mon Sep 17 00:00:00 2001 From: liuzhifu Date: Thu, 1 Sep 2016 15:17:50 +0800 Subject: [PATCH] components: lwip - modify HEAP_HIGHWAT from 6K to 20K Since esp32 has much more memory than esp31B, modify the HEAP_HIGHWAT from 6K to 20K. Notes: HEAP_HIGHWAT is used for tcp/udp tx flow control, if socket task detects that the free heap memory is less than HEAP_HIGHWAT, it stops to trasmitting until the free heap memory is greater than HEAP_HIGHWAT --- components/lwip/include/lwip/port/lwipopts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lwip/include/lwip/port/lwipopts.h b/components/lwip/include/lwip/port/lwipopts.h index 122fea3157..00151a2ff9 100755 --- a/components/lwip/include/lwip/port/lwipopts.h +++ b/components/lwip/include/lwip/port/lwipopts.h @@ -514,7 +514,7 @@ extern unsigned char misc_prof_get_tcp_snd_buf(void); #define CHECKSUM_CHECK_UDP 0 #define CHECKSUM_CHECK_IP 0 -#define HEAP_HIGHWAT 6*1024 +#define HEAP_HIGHWAT 20*1024 #define LWIP_NETCONN_FULLDUPLEX 1 #define LWIP_NETCONN_SEM_PER_THREAD 1