]> granicus.if.org Git - esp-idf/commitdiff
components: lwip - modify HEAP_HIGHWAT from 6K to 20K
authorliuzhifu <liuzhifu@espressif.com>
Thu, 1 Sep 2016 07:17:50 +0000 (15:17 +0800)
committerliuzhifu <liuzhifu@espressif.com>
Thu, 1 Sep 2016 07:17:50 +0000 (15:17 +0800)
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

index 122fea3157daaeda276c5f201b0c362d5ae15de6..00151a2ff9caad09656ab9799c552fde34e89a8d 100755 (executable)
@@ -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