mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-06-04 19:39:45 +00:00
When the JVB bridge disconnects but the session is not yet closed (e.g. during a pending reconnect), rtcpKeepalive spins indefinitely logging "rtcp keepalive write: io: read/write on closed pipe" every 5 seconds. The process appears alive but is functionally dead — systemd Restart=always never triggers and the instance becomes permanently wedged. Add an error counter that triggers requestReconnect after 3 consecutive WriteRTCP failures, allowing the supervisor to tear down and re-establish the bridge connection. Reset the counter on any successful write. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>