From 2ec3b785a8e0fc9407e20a6cddc8ca25c284f07b Mon Sep 17 00:00:00 2001 From: Sam Wilson Date: Fri, 3 May 2019 18:40:29 +0000 Subject: [PATCH] Treat UnexpectedEof as Disconnect --- capnp/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/capnp/src/lib.rs b/capnp/src/lib.rs index 121b486e9..70106589d 100644 --- a/capnp/src/lib.rs +++ b/capnp/src/lib.rs @@ -238,6 +238,7 @@ impl ::std::convert::From<::std::io::Error> for Error { use std::io; let kind = match err.kind() { io::ErrorKind::TimedOut => ErrorKind::Overloaded, + io::ErrorKind::UnexpectedEof | io::ErrorKind::BrokenPipe | io::ErrorKind::ConnectionRefused | io::ErrorKind::ConnectionReset |