Skip to main content

MAX_SESSION_POINTER_BINDINGS

Constant MAX_SESSION_POINTER_BINDINGS 

Source
pub const MAX_SESSION_POINTER_BINDINGS: usize = _ /* 65_536usize */;
Expand description

Most pointer bindings every live round-1 session holds together (ADR-0019): 4 MiB of keys and roots at the cap, before the maps’ own overhead.

A session keeps one per pointer its round 1 proved, and a round-1 subtree can hold about a thousand leaves, so MAX_SUBTREE_SESSIONS full sessions would otherwise hold two million. A round 1 whose bindings would not fit withholds its proof and answers Transient, and no session already answered gives its bindings up.