diff --git a/components/lwip/Kconfig b/components/lwip/Kconfig index 5468517f9..a95771bed 100644 --- a/components/lwip/Kconfig +++ b/components/lwip/Kconfig @@ -435,6 +435,13 @@ config LWIP_WND_SCALE help Enable this feature to support TCP window scaling. +config LWIP_TCP_RTO_TIME + int "Default TCP rto time" + default 3000 + help + Set default TCP rto time for a reasonable initial rto. + In bad network environment, recommend set value of rto time to 1500. + endmenu # TCP menu "UDP" diff --git a/components/lwip/lwip b/components/lwip/lwip index da2740fa8..f02243aa5 160000 --- a/components/lwip/lwip +++ b/components/lwip/lwip @@ -1 +1 @@ -Subproject commit da2740fa8d56b9b9e8a10602f38df1ea4dbd9b74 +Subproject commit f02243aa5f04f6e453e83ecad4700691b9f919d0 diff --git a/components/lwip/port/esp32/include/lwipopts.h b/components/lwip/port/esp32/include/lwipopts.h index be04739a7..aabd24fcf 100644 --- a/components/lwip/port/esp32/include/lwipopts.h +++ b/components/lwip/port/esp32/include/lwipopts.h @@ -376,6 +376,12 @@ #define TCP_RCV_SCALE CONFIG_TCP_RCV_SCALE #endif +/** + * LWIP_TCP_RTO_TIME: TCP rto time. + * Default is 3 second. + */ +#define LWIP_TCP_RTO_TIME CONFIG_LWIP_TCP_RTO_TIME + /* ---------------------------------- ---------- Pbuf options ----------