Skip to main content

session_idle_notify_cap

Function session_idle_notify_cap 

Source
fn session_idle_notify_cap(
    configured: Option<Duration>,
    entry_idle_timeout: Option<Duration>,
) -> Option<Duration>
Expand description

The longest idle report period for one Exit Session.

configured is the node’s cap, already clamped to the Exit’s own idle timeout. On an idle Session the reports refresh the Entry’s slot, so an Entry that announced its idle timeout bounds it further, to a quarter of that (see IDLE_NOTIFY_PERIODS_PER_IDLE_TIMEOUT). An Entry that announced none is assumed to use the Exit’s.