From 9e4675ef468d3ab25ccc840a277e4b10ff5426be Mon Sep 17 00:00:00 2001 From: Will Miles Date: Wed, 30 Jul 2025 22:17:44 -0400 Subject: [PATCH 1/3] Update AsyncWebServer and AsyncTCP This should fix (or at least improve) some of the crash cases under excessive web server load. --- platformio.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platformio.ini b/platformio.ini index 9bdf58d34..a5abbc68a 100644 --- a/platformio.ini +++ b/platformio.ini @@ -142,7 +142,7 @@ lib_deps = IRremoteESP8266 @ 2.8.2 makuna/NeoPixelBus @ 2.8.3 #https://github.com/makuna/NeoPixelBus.git#CoreShaderBeta - https://github.com/Aircoookie/ESPAsyncWebServer.git#v2.4.0 + https://github.com/Aircoookie/ESPAsyncWebServer.git#v2.4.1 # for I2C interface ;Wire # ESP-NOW library @@ -234,7 +234,7 @@ lib_deps_compat = [esp32_all_variants] lib_deps = - willmmiles/AsyncTCP @ 1.3.1 + esp32async/AsyncTCP @ 3.4.6 bitbank2/AnimatedGIF@^1.4.7 https://github.com/Aircoookie/GifDecoder#bc3af18 build_flags = From e374c7ae55b6bd59c1abdac7b1e929e72b5f6efa Mon Sep 17 00:00:00 2001 From: Will Miles Date: Sat, 2 Aug 2025 15:49:47 -0400 Subject: [PATCH 2/3] Update to AsyncTCP 3.4.7 Bugfix on 3.4.6 --- platformio.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platformio.ini b/platformio.ini index a5abbc68a..7c27284b9 100644 --- a/platformio.ini +++ b/platformio.ini @@ -142,7 +142,7 @@ lib_deps = IRremoteESP8266 @ 2.8.2 makuna/NeoPixelBus @ 2.8.3 #https://github.com/makuna/NeoPixelBus.git#CoreShaderBeta - https://github.com/Aircoookie/ESPAsyncWebServer.git#v2.4.1 + https://github.com/Aircoookie/ESPAsyncWebServer.git#v2.4.2 # for I2C interface ;Wire # ESP-NOW library @@ -234,7 +234,7 @@ lib_deps_compat = [esp32_all_variants] lib_deps = - esp32async/AsyncTCP @ 3.4.6 + esp32async/AsyncTCP @ 3.4.7 bitbank2/AnimatedGIF@^1.4.7 https://github.com/Aircoookie/GifDecoder#bc3af18 build_flags = From f74d1459b99939ec4bc0916ca9ba50931a53257a Mon Sep 17 00:00:00 2001 From: Will Miles Date: Mon, 4 Aug 2025 14:21:11 -0400 Subject: [PATCH 3/3] Downtune AsyncTCP stack size We downtuned the stack usage of AsyncTCP, and at some point in the history of our fork, this got folded in to the default. Re-apply the stack size we've been using and recover that RAM. --- platformio.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/platformio.ini b/platformio.ini index 7c27284b9..92f8f3d40 100644 --- a/platformio.ini +++ b/platformio.ini @@ -239,6 +239,7 @@ lib_deps = https://github.com/Aircoookie/GifDecoder#bc3af18 build_flags = -D CONFIG_ASYNC_TCP_USE_WDT=0 + -D CONFIG_ASYNC_TCP_STACK_SIZE=8192 -D WLED_ENABLE_GIF [esp32]