mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-12-03 03:44:54 +00:00
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> |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| Cargo.lock | ||
| Cargo.toml | ||
| relay.example.toml | ||