Skip to main content

close_session

Function close_session 

Source
fn close_session(
    session_id: SessionId,
    session_data: SessionSlot,
    reason: ClosureReason,
    admission: Option<Arc<dyn SurbAdmissionControl>>,
    grace: Duration,
    token: AdmissionToken,
)
Expand description

Closes an established Session.

Logs the counterpart of “new session established” (see SessionSlotGuard::commit): one line per Session at INFO, so its whole lifetime can be read from a production log without the per-frame detail of the socket.

admission is the SURB-store seam, forwarded to release_session_slot; None only ever reaches here from a teardown that had no seam to call.