1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00
This commit is contained in:
Nikolay Kim
2019-06-05 08:43:13 +06:00
parent ae64475d98
commit a548b69679
4 changed files with 9 additions and 8 deletions

View File

@ -693,11 +693,12 @@ where
}
} else {
// read socket into a buf
let should_disconnect = if !inner.flags.contains(Flags::READ_DISCONNECT) {
read_available(&mut inner.io, &mut inner.read_buf)?
} else {
None
};
let should_disconnect =
if !inner.flags.contains(Flags::READ_DISCONNECT) {
read_available(&mut inner.io, &mut inner.read_buf)?
} else {
None
};
inner.poll_request()?;
if let Some(true) = should_disconnect {