Skip to main content

DEFAULT_REQUEST_TIMEOUT

Constant DEFAULT_REQUEST_TIMEOUT 

Source
pub const DEFAULT_REQUEST_TIMEOUT: Duration;
Available on crate feature server only.
Expand description

Default per-request wall-clock budget applied by HttpsServer::into_router. A Trust Task exchange is one small JSON round trip; a request still in flight after this is wedged, and holding the connection open is exactly what a slowloris wants. Override with HttpsServerBuilder::request_timeout.