scuffle-http 0.3.2

A high-performance HTTP server supporting HTTP/1.1, HTTP/2, and HTTP/3.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Returns true if the error is a fatal TCP error.
///
/// Not all errors are fatal, some can be ignored.
pub(crate) fn is_fatal_tcp_error(err: &std::io::Error) -> bool {
    matches!(
        err.raw_os_error(),
        Some(libc::EFAULT)
            | Some(libc::EINVAL)
            | Some(libc::ENFILE)
            | Some(libc::EMFILE)
            | Some(libc::ENOBUFS)
            | Some(libc::ENOMEM)
    )
}