From 729f16fa0892a594560347cd93b3eb872615c1a7 Mon Sep 17 00:00:00 2001 From: Jonathan Caicedo Date: Sat, 14 Jun 2025 17:07:00 -0400 Subject: [PATCH] esp_websocket_client: bump default task stack size to 8192 bytes This can alleviate crashes with wss addresses - 4KB might not be sufficient for the WebSocket client with TLS overhead - this change bumps the task stack size to match that of the main thread (8KB) --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index 0311334..1810e34 100644 --- a/src/main.c +++ b/src/main.c @@ -215,6 +215,7 @@ void app_main(void) { // setup ws event handlers const esp_websocket_client_config_t ws_cfg = { .uri = url_to_use, + .task_stack = 8192, .buffer_size = 10000, .crt_bundle_attach = esp_crt_bundle_attach, };