fn surb_retire_grace(surb_resolution_wait: Duration) -> DurationExpand description
How long a teardown waits before retiring its Session’s pseudonym from the SURB store’s admitted class.
Derived from the packet pipeline’s SURB-resolution window: a return-routed packet whose SURB has
not arrived is retried there for the pipeline’s surb_resolution_wait — 6 s at the library
default — before it is dropped, and a closing Exit’s own notification is exactly such a packet.
The grace must cover the whole wait, so the ring is still there when the resolution stage last
looks; the margin below adds room for the queueing between the send and the lookup, without being
so long that a pseudonym’s admitted ring outlives its Session by anything an operator could
notice. The window is operator-configurable, so the grace is derived from it rather than pinned
to a literal that only clears the default.