Skip to content
This repository was archived by the owner on Sep 23, 2026. It is now read-only.

Commit 14194c9

Browse files
committed
S3: 32 KB TCP window, SACK, 1 s RTO, WiFi/lwIP buffers from PSRAM -- the 5760-byte window backed off for 40 s at a time on a weak link
1 parent b44afd4 commit 14194c9

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

esp32_partitions/ESP32_GENERIC_S3_SPIRAM_OCT.sdkconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,17 @@ CONFIG_LWIP_MAX_SOCKETS=16
3232
# DRAM. This makes the offending free abort where the damage is, instead of
3333
# a later walk aborting where it is not.
3434
CONFIG_HEAP_POISONING_LIGHT=y
35+
36+
# TCP over a weak link. The port defaults gave lwIP a 5760-byte receive window
37+
# and a 1.5 s minimum RTO; on the T-Embed at -77 dBm a burst of losses backed the
38+
# retransmit timer off until chunk data stopped for 40 s at a time (2026-09-16
39+
# 22:00, ring log). A 32 KB window, selective ACK and a 1 s RTO, with the WiFi
40+
# and lwIP buffers taken from PSRAM so internal DRAM is not the price.
41+
CONFIG_LWIP_TCP_WND_DEFAULT=32768
42+
CONFIG_LWIP_TCP_SND_BUF_DEFAULT=32768
43+
CONFIG_LWIP_TCP_RECVMBOX_SIZE=16
44+
CONFIG_LWIP_TCP_RTO_TIME=1000
45+
CONFIG_LWIP_TCP_SACK_OUT=y
46+
CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y
47+
CONFIG_ESP_WIFI_RX_BA_WIN=16
48+
CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM=48

0 commit comments

Comments
 (0)