pub const DEFAULT_DRAIN_TIMEOUT: Duration;Expand description
How long to wait for in-flight connections once shutdown is signalled.
Fifteen seconds, after DEFAULT_TASK_GRACE, keeps the two within a
Kubernetes terminationGracePeriodSeconds default of 30, leaving room for
the protocol-layer RequestHandler::shutdown
that follows. Streams no longer hold it open — their tasks have ended by the
time it starts — so what it waits for is requests that are not tasks. One
behind a proxy that already drains can lower it.