···4949 false
5050}
51515252+pub fn is_io_error_their_fault(e: &std::io::Error) -> bool {
5353+ use std::io::ErrorKind::*;
5454+ matches!(
5555+ e.kind(),
5656+ // some of these maybe our fault, but lets assume we have working networking
5757+ // if its our fault chances are most of the other hosts will also fail, which will be in the logs
5858+ // we log the error anyway so it should be easy to tell if something is going bad
5959+ ConnectionRefused
6060+ | HostUnreachable
6161+ | NetworkUnreachable
6262+ | ConnectionReset
6363+ | ConnectionAborted
6464+ | TimedOut
6565+ )
6666+}
6767+5268pub fn is_tls_error_their_fault(e: &rustls::Error) -> bool {
5369 use rustls::Error::*;
5470 matches!(