Raxol.Terminal.SessionManager.Cleanup (Raxol Terminal v2.6.0)

Copy Markdown View Source

Session cleanup: expired session removal and resource monitoring.

Summary

Functions

Removes expired sessions from state based on timeout configuration.

Cleans up all resources associated with a session (terminals, clients). Returns updated state with clients removed.

Initializes the resource monitor configuration.

Functions

cleanup_expired_sessions(state)

Removes expired sessions from state based on timeout configuration.

cleanup_session(session, state)

Cleans up all resources associated with a session (terminals, clients). Returns updated state with clients removed.

init_resource_monitor(enabled)

Initializes the resource monitor configuration.