pub fn connection_scope(
parent: &WeakScope,
max_age: Duration,
grace: Duration,
) -> ScopeLayerAvailable on crate features
cli and std only.Expand description
Runs each served connection in a scope below parent that starts draining once it is
max_age old, give or take a tenth so connections opened together do not drain together,
and is aborted at most grace after it starts draining for any reason, sooner when
parent reaches its own hard phase first; zero max_age sets no age.