From 65d18eab937c997fa33041d5f46c3f57b31fcbf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=20Go=C3=B1i?= Date: Fri, 18 Oct 2019 14:37:38 +0200 Subject: [PATCH] Add config option for LWIP TCP_TMR_INTERVAL Merges https://github.com/espressif/esp-idf/pull/4213 --- components/lwip/Kconfig | 8 ++++++++ components/lwip/port/esp32/include/lwipopts.h | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/components/lwip/Kconfig b/components/lwip/Kconfig index 6a5c9dd273..8180b8da61 100644 --- a/components/lwip/Kconfig +++ b/components/lwip/Kconfig @@ -326,6 +326,14 @@ menu "LWIP" IPv4 TCP_MSS Range: 576 <= TCP_MSS <= 1460 IPv6 TCP_MSS Range: 1220<= TCP_mSS <= 1440 + config TCP_TMR_INTERVAL + int "TCP timer interval" + default 250 + help + Set TCP timer interval in milliseconds. + + Can be used to speed connections on bad networks. A lower value will redeliver unacked packets faster. + config LWIP_TCP_MSL int "Maximum segment lifetime (MSL)" default 60000 diff --git a/components/lwip/port/esp32/include/lwipopts.h b/components/lwip/port/esp32/include/lwipopts.h index 5ad6c9cc5c..10b9232626 100644 --- a/components/lwip/port/esp32/include/lwipopts.h +++ b/components/lwip/port/esp32/include/lwipopts.h @@ -325,6 +325,11 @@ */ #define TCP_MSS CONFIG_LWIP_TCP_MSS +/** + * TCP_TMR_INTERVAL: TCP timer interval + */ +#define TCP_TMR_INTERVAL CONFIG_TCP_TMR_INTERVAL + /** * TCP_MSL: The maximum segment lifetime in milliseconds */