mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +00:00
ccdb5a3bfb3161eca67f7782f576a70882d502e9
web_server_idf invokes handleUpload twice with index==0 at the start of every upload (once as a 'Start' signal with nullptr data, then with the first data chunk). The previous fix treated the second call as a stale-session retry, wastefully aborting and re-initializing the backend on every single upload. Store the AsyncWebServerRequest pointer that owns the current session and only tear down the backend when a different request arrives at index==0. Clear the tracked pointer on every backend reset path so a stack-reused request pointer from a later upload cannot collide.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
545 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
