Merge remote-tracking branch 'origin/main' into chore/debug-serial-921600

This commit is contained in:
cjkas 2026-10-21 21:43:36 +02:00
commit cb9ca4ce29
3 changed files with 6 additions and 4 deletions

3
.gitignore vendored
View file

@ -27,9 +27,6 @@ elf_archive/
coredump_report.txt
coredump.bin
# Project Specific / Generated Source
src/SomfyController.ino.cpp
# Ignore Somfy INO/Bin files
SomfyController.ino.XIAO_ESP32S3.bin
SomfyController.ino.esp32c3.bin

View file

@ -210,7 +210,12 @@ void SocketEmitter::wsEvent(AsyncWebSocket *server, AsyncWebSocketClient *client
slots[slot].connectedAt = millis();
slots[slot].lastPing = 0;
client->text("Connected");
client->setCloseClientOnQueueFull(false);
// A client that stops reading (a frozen browser tab) keeps its TCP link
// up, so nothing else ever closes it, and every message dropped for it
// logged a warning that held up loop() for ~10ms. Closing it frees the
// queue; the page and Home Assistant reconnect and get the full state
// again from delayInit().
client->setCloseClientOnQueueFull(true);
sockEmit.delayInit(slot);
}
break;