Skip to main content

session_config_with

Function session_config_with 

Source
fn session_config_with(
    cfg: &SessionManagerConfig,
    capabilities: Capabilities,
    max_frames_behind_gap: Option<usize>,
) -> HoprSessionConfig
Expand description

As session_config, with the initiating session’s own head-of-line bound.

None inherits the node default; Some(0) disables the bound for this session; Some(n) sets it. The zero-disables convention matches the node setting, so the per-session and node-wide knobs cannot mean opposite things by the same value.

Sessions accepted from a peer pass None: the bound governs how we reassemble what arrives, so it is ours to choose, not the initiator’s to impose on us.