From 6f4e257601bfeadd494dff03bd7188762b934ab3 Mon Sep 17 00:00:00 2001 From: baohongde Date: Thu, 26 Dec 2019 15:36:31 +0800 Subject: [PATCH] Increase TCP send buffer and receive window limitation when TCP window scale is enabled --- components/lwip/Kconfig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/lwip/Kconfig b/components/lwip/Kconfig index f03844147d..586bf0e02c 100644 --- a/components/lwip/Kconfig +++ b/components/lwip/Kconfig @@ -320,7 +320,8 @@ menu "LWIP" config LWIP_TCP_SND_BUF_DEFAULT int "Default send buffer size" default 5744 # 4 * default MSS - range 2440 65535 + range 2440 65535 if !LWIP_WND_SCALE + range 2440 1024000 if LWIP_WND_SCALE help Set default send buffer size for new TCP sockets. @@ -336,7 +337,8 @@ menu "LWIP" config LWIP_TCP_WND_DEFAULT int "Default receive window size" default 5744 # 4 * default MSS - range 2440 65535 + range 2440 65535 if !LWIP_WND_SCALE + range 2440 1024000 if LWIP_WND_SCALE help Set default TCP receive window size for new TCP sockets.