diff --git a/src/lib.rs b/src/lib.rs index 383ae63..f62de62 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -343,6 +343,9 @@ impl Server { Err(Error::ConnectionClosed) | Err(Error::Timeout) | Err(Error::HttpParse(_)) => { return Ok(()) } + Err(Error::Io(ref io_error)) if io_error.kind() == std::io::ErrorKind::BrokenPipe => { + return Ok(()) + } Err(Error::RequestTooLarge) => { let resp = Response::builder()