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:
parent
3431fff4d7
commit
a534fdd125
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue