Skip to main content

Module session

Module session 

Source
Expand description

Session Manager

Manages active VPN sessions with O(1) tag validation

Structs§

Session
Session information
SessionManager
Session Manager with O(1) tag lookup
u256
256-bit bitmap for tracking received packets

Enums§

SessionState
Session state

Constants§

HARD_TIMEOUT
Session hard timeout — 0 means unlimited (Issue #33). Configurable via session_timeout_secs in server.json. PFS ratchet already handles key rotation, so forced session expiration is unnecessary and causes reconnect failures.
IDLE_TIMEOUT
Session idle timeout (default)
MAX_SESSIONS
Maximum sessions on 1GB VPS
TAG_WINDOW_SIZE
Tag window size (allow out-of-order packets)