Skip to main content

is_connection_error

Function is_connection_error 

Source
pub(crate) fn is_connection_error(e: &Error) -> bool
Expand description

Per-connection errors from accept() that can be skipped immediately. All other errors (e.g., EMFILE/ENFILE resource exhaustion) warrant a sleep before retrying. Mirrors hyper’s AddrIncoming classification.