pub fn read_request_with_deadlines<'a>(
socket: &impl AsFd,
storage: &'a mut [u8],
policy: RequestPolicy,
deadlines: RequestDeadlines,
) -> Result<Request<'a>>Expand description
Apply monotonic total-intake and idle-progress deadlines in addition to byte
quotas and accepted-socket read timeouts. The deadline starts on this call,
covers header/body intake and the final synchronous parse/inflation check,
and never resets when a peer drips another byte. It excludes accept, Git
preparation and response transmission. Close the socket on every error.
Expired host deadlines return LimitExceeded; a shorter socket timeout
retains Backend. Socket flags and timeout settings remain unchanged.
With both deadlines unset this is identical to read_request_with_policy.