rouse-context/relay
Jason Monk 989f6c6a74 Detect stale device WebSocket connections via ping/pong timeout
Silent connection deaths (network change, device sleep) left dead sessions
in the registry, causing new AI client connections to route to them and hang.

The write task now sends WebSocket Ping frames every 30s. The read task
wraps ws_receiver.next() in a 60s timeout — if no message (including Pong
responses) arrives within that window, the connection is considered dead and
the session is torn down. Both intervals are configurable via
ws_ping_interval_secs and ws_read_timeout_secs in LimitsConfig.

Also introduces SessionParams struct to group handle_mux_session arguments
and stay within clippy's argument-count limit.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 18:31:24 -04:00
..
src Detect stale device WebSocket connections via ping/pong timeout 2026-04-06 18:31:24 -04:00
tests Fix FCM wake after relay restart: use mTLS as sole WebSocket auth 2026-04-06 17:21:55 -04:00
Cargo.lock Two-cert mTLS: relay CA client cert + ACME server cert from device's own key 2026-04-06 12:37:46 -04:00
Cargo.toml Two-cert mTLS: relay CA client cert + ACME server cert from device's own key 2026-04-06 12:37:46 -04:00
relay.example.toml Fix ACME DNS-01 challenge failure: verify TXT propagation before validation 2026-04-05 20:30:55 -04:00