From 360a7ba9c79f8d55c0583bead4fea0075ff44888 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 21 Feb 2026 19:29:39 -0600 Subject: [PATCH] =?UTF-8?q?[libretiny]=20Fix=20TCP=5FWND=20to=20show=203/1?= =?UTF-8?q?0=C3=97MSS=20for=20BK=20reduced/default=20plans?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BK SDK sets TCP_SND_BUF=10×MSS on both plans but TCP_WND varies: 3×MSS (reduced plan) vs 10×MSS (default plan). Also update stale minimum counts in docstring (8 TCP / 6 UDP). Co-Authored-By: Claude Opus 4.6 --- esphome/components/libretiny/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/libretiny/__init__.py b/esphome/components/libretiny/__init__.py index 6b6b1abe1c..f6679e2456 100644 --- a/esphome/components/libretiny/__init__.py +++ b/esphome/components/libretiny/__init__.py @@ -290,7 +290,7 @@ def _configure_lwip(config: dict) -> None: Setting ESP8266 ESP32 BK SDK RTL SDK LN SDK New ──────────────────────────────────────────────────────────────────────────── TCP_SND_BUF 2×MSS 4×MSS 10×MSS 5×MSS 7×MSS 4×MSS - TCP_WND 4×MSS 4×MSS 10×MSS 2×MSS 3×MSS 4×MSS + TCP_WND 4×MSS 4×MSS 3/10×MSS 2×MSS 3×MSS 4×MSS MEM_LIBC_MALLOC 1 1 0 0 1 1 MEMP_MEM_MALLOC 1 1 0 0 0 1 MEM_SIZE N/A* N/A* 16/32KB 5KB N/A* N/A* BK @@ -313,7 +313,7 @@ def _configure_lwip(config: dict) -> None: **** RTL/LN LT overlay overrides to flat 7. ***** Not defined in RTL SDK — lwIP opt.h defaults shown. "dynamic" = auto-calculated from component socket registrations via - socket.get_socket_counts() with minimums of 10 TCP / 8 UDP. + socket.get_socket_counts() with minimums of 8 TCP / 6 UDP. """ from esphome.components.socket import ( MIN_TCP_SOCKETS,