mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-26 06:57:43 +02:00
Add io handling for ECONNRESET when data has already been received
This commit is contained in:
@ -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)
|
||||
};
|
||||
|
Reference in New Issue
Block a user