Skip to main content

DEFAULT_HEADER_READ_TIMEOUT

Constant DEFAULT_HEADER_READ_TIMEOUT 

Source
pub const DEFAULT_HEADER_READ_TIMEOUT: Duration;
Expand description

How long a peer may take to send a complete set of request headers.

Thirty seconds is hyper’s own default for this, kept rather than re-chosen. What changes here is that it now applies. Hyper honours the setting only when a Timer is installed on the connection builder, and neither this server nor serve installed one — so the default was inert. Both install one now; serve runs on this server. Hyper says so at warn level when it drops it, in a log line nobody was reading.