From 5cf3b1c201fbde11f83f02dfd3dd4dfa625823db Mon Sep 17 00:00:00 2001 From: Liu Zhi Fu Date: Thu, 27 Apr 2017 21:58:38 +0800 Subject: [PATCH] esp32/lwip: adjust some lwip options and update wifi lib 1. Modify TCP TX window from 2 to 4 2. Modify TCPIP task stack default size from 2048 to 2560 3. Update wifi lib for TCP performance optimization --- components/esp32/lib | 2 +- components/lwip/Kconfig | 4 ++-- components/lwip/include/lwip/port/lwipopts.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/esp32/lib b/components/esp32/lib index fd7893d22a..c03b89041a 160000 --- a/components/esp32/lib +++ b/components/esp32/lib @@ -1 +1 @@ -Subproject commit fd7893d22ae4d43488c950583db7125c37b5ba80 +Subproject commit c03b89041a888feff1f2fa96106ec4fee61c25a7 diff --git a/components/lwip/Kconfig b/components/lwip/Kconfig index 1e37056fbe..06becb7f3d 100644 --- a/components/lwip/Kconfig +++ b/components/lwip/Kconfig @@ -91,10 +91,10 @@ config LWIP_DHCP_DOES_ARP_CHECK config TCPIP_TASK_STACK_SIZE int "TCP/IP Task Stack Size" - default 2048 + default 2560 help Configure TCP/IP task stack size, used by LWIP to process multi-threaded TCP/IP operations. - The default is 2048 bytes, setting this stack too small will result in stack overflow crashes. + The default is 2560 bytes, setting this stack too small will result in stack overflow crashes. menuconfig PPP_SUPPORT bool "Enable PPP support (new/experimental)" diff --git a/components/lwip/include/lwip/port/lwipopts.h b/components/lwip/include/lwip/port/lwipopts.h index 1fba710422..3b8c5485c4 100644 --- a/components/lwip/include/lwip/port/lwipopts.h +++ b/components/lwip/include/lwip/port/lwipopts.h @@ -670,7 +670,7 @@ #define ESP_LWIP_LOGI(...) ESP_LOGI("lwip", __VA_ARGS__) #define TCP_WND_DEFAULT (4*TCP_MSS) -#define TCP_SND_BUF_DEFAULT (2*TCP_MSS) +#define TCP_SND_BUF_DEFAULT (4*TCP_MSS) #if ESP_PERF #define DBG_PERF_PATH_SET(dir, point)