Skip to main content

Module session

Module session 

Source
Expand description

User session registry for tracking active VPN connections.

Provides a centralized, thread-safe registry that maps usernames to their active connection sessions and shared rate limiters. The registry is only accessed on connect/disconnect – it is NOT in the packet forwarding hot path.

Structs§

ConnectionSession
Metadata for a single active QUIC connection.
UserSession
Per-user state, potentially spanning multiple concurrent connections.
UserSessionRegistry
Thread-safe registry of active user sessions.

Type Aliases§

BandwidthLimiter
Type alias for the governor rate limiter used for bandwidth limiting.