From e99cee2a1b190046185fddedc5b9607b5352b430 Mon Sep 17 00:00:00 2001 From: "Valentin V. Bartenev" Date: Tue, 5 May 2026 21:00:13 +0300 Subject: [PATCH] Web: pin HTTPS and redirect server tasks to core 0 at low priority Set task_priority = tskIDLE_PRIORITY + 2 and core_id = 0 for both the HTTPS server and the HTTP-to-HTTPS redirect server. This keeps web serving off core 1, which handles radio and application logic, reducing interference with time-sensitive operations. --- src/helpers/web/WebPanelServer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/helpers/web/WebPanelServer.cpp b/src/helpers/web/WebPanelServer.cpp index 94324a08..737a0a79 100644 --- a/src/helpers/web/WebPanelServer.cpp +++ b/src/helpers/web/WebPanelServer.cpp @@ -2571,6 +2571,8 @@ bool WebPanelServer::start() { config.httpd.recv_wait_timeout = 2; config.httpd.send_wait_timeout = 2; config.httpd.stack_size = kWebServerStackSize; + config.httpd.task_priority = tskIDLE_PRIORITY + 2; + config.httpd.core_id = 0; #if defined(ESP_IDF_VERSION_MAJOR) && ESP_IDF_VERSION_MAJOR >= 5 config.servercert = reinterpret_cast(mqtt_web_panel_cert::kServerCertPem); config.servercert_len = sizeof(mqtt_web_panel_cert::kServerCertPem); @@ -2614,6 +2616,8 @@ bool WebPanelServer::start() { redirect_config.recv_wait_timeout = 2; redirect_config.send_wait_timeout = 2; redirect_config.stack_size = kWebServerStackSize; + redirect_config.task_priority = tskIDLE_PRIORITY + 2; + redirect_config.core_id = 0; redirect_config.uri_match_fn = httpd_uri_match_wildcard; rc = httpd_start(&_redirect_server, &redirect_config);