Function hyper::server::tcp::is_connection_error
source ยท fn is_connection_error(e: &Error) -> bool
Expand description
This function defines errors that are per-connection. Which basically
means that if we get this error from accept()
system call it means
next connection might be ready to be accepted.
All other errors will incur a timeout before next accept()
is performed.
The timeout is useful to handle resource exhaustion errors like ENFILE
and EMFILE. Otherwise, could enter into tight loop.