mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-30 18:42:52 +01:00
Add io handling for ECONNRESET when data has already been received
This commit is contained in:
parent
3431fff4d7
commit
a534fdd125
@ -303,6 +303,8 @@ pub trait IoStream: AsyncRead + AsyncWrite + 'static {
|
|||||||
} else {
|
} else {
|
||||||
Ok(Async::NotReady)
|
Ok(Async::NotReady)
|
||||||
}
|
}
|
||||||
|
} else if e.kind() == io::ErrorKind::ConnectionReset && read_some {
|
||||||
|
Ok(Async::Ready((read_some, true)))
|
||||||
} else {
|
} else {
|
||||||
Err(e)
|
Err(e)
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user