mirror of
https://github.com/CloudNebulaProject/wayray.git
synced 2026-04-10 13:10:41 +00:00
Core session management infrastructure for Phase 3: - Session module: SessionId, SessionToken, SessionState enum with validated transitions (Creating→Active⇄Suspended→Destroyed), Session struct with timeout tracking, SessionRegistry with O(1) lookup by ID and token (10 unit tests) - Protocol: ClientHello gains optional token field, ServerHello gains resumed flag and token echo, SessionStatus/SessionEvent enums added to ControlMessage for session state notifications - Server: SessionRegistry in headless CalloopData, sessions created on client connect (with token lookup for resumption), suspended on disconnect (not destroyed), periodic cleanup of expired sessions - Client: --token CLI flag, persistent token at ~/.config/wayray/token with auto-generation (random 16-byte hex), token sent in ClientHello, resumed state logged from ServerHello |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| Cargo.toml | ||