Skip to main content

drain_requests

Function drain_requests 

Source
pub async fn drain_requests() -> i64
Available on crate feature http2 only.
Expand description

Wait until no request is being handled (metrics::REQUESTS_IN_FLIGHT), at most shutdown_timeout_secs (18.35.0). The accept loops call it after they stop accepting, so handlers that started finish before the process exits. Returns how many were still running at the deadline.