Skip to content

Commit 9b809d4

Browse files
author
Sergey Chernomorets
committed
Merge remote-tracking branch 'goto-bus-stop/fix/broken-pipe' into HEAD
close steveklabnik#119 fix crash when client connection is aborted
2 parents 8211c87 + eeb8aca commit 9b809d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ impl Server {
343343
Err(Error::ConnectionClosed) | Err(Error::Timeout) | Err(Error::HttpParse(_)) => {
344344
return Ok(())
345345
}
346+
Err(Error::Io(ref io_error)) if io_error.kind() == std::io::ErrorKind::BrokenPipe => {
347+
return Ok(())
348+
}
346349

347350
Err(Error::RequestTooLarge) => {
348351
let resp = Response::builder()

0 commit comments

Comments
 (0)