1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-26 19:41:12 +00:00

Add io handling for ECONNRESET when data has already been received

This commit is contained in:
Neil Jensen 2019-01-19 10:41:48 -07:00 committed by Douman
parent 3431fff4d7
commit a534fdd125

View file

@ -303,6 +303,8 @@ pub trait IoStream: AsyncRead + AsyncWrite + 'static {
} else {
Ok(Async::NotReady)
}
} else if e.kind() == io::ErrorKind::ConnectionReset && read_some {
Ok(Async::Ready((read_some, true)))
} else {
Err(e)
};