Skip to main content

accept_with_timeouts

Function accept_with_timeouts 

Source
pub fn accept_with_timeouts(
    socket: &impl AsFd,
    timeouts: AcceptedSocketTimeouts,
) -> Result<OwnedFd>
Expand description

Accept with host-selected child socket timeouts, preserving close-on-exec. Invalid zero durations are rejected before accepting; configuration failures close the child before returning Backend. The listener is unchanged.