Fix satellite heartbeat timeout cleanup and /status blocking

Heartbeat timeout called m_con->disconnect() on a server-managed
connection, which didn't trigger TcpServer::clientDisconnected —
leaving dead satellites in the map forever. After timeout, the
unsigned rx counter wrapped to UINT_MAX preventing re-detection.
The timer also kept firing sendMsg() to the dead socket, blocking
the event loop and causing /status to stall for ~10s.

Fix: SatelliteLink emits linkFailed signal instead of calling
disconnect directly. Reflector handles cleanup via a deferred
zero-timer to avoid re-entrancy. The /status handler skips
satellites pending cleanup. Also disable ALSA in Docker build
(unused by the reflector).
This commit is contained in:
Audric committed 2026-03-20 19:08:31 +01:00
1 parent 195be03036
commit fa57db6e62
5 files changed
+72 -5

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
WORKDIR /src
COPY src/ src/
RUN cmake -S src -B build -DLOCAL_STATE_DIR=/var \
RUN cmake -S src -B build -DLOCAL_STATE_DIR=/var -DUSE_ALSA=OFF \
&& cmake --build build