mirror of
https://github.com/actix/actix-web.git
synced 2024-09-27 22:01:56 +00:00
This commit is contained in:
parent
bd5c0af0a6
commit
4a468b85b2
1 changed files with 2 additions and 1 deletions
|
@ -1197,7 +1197,8 @@ where
|
||||||
let state_is_none = inner_p.state.is_none();
|
let state_is_none = inner_p.state.is_none();
|
||||||
|
|
||||||
// read half is closed; we do not process any responses
|
// read half is closed; we do not process any responses
|
||||||
if inner_p.flags.contains(Flags::READ_DISCONNECT) && state_is_none {
|
// fix https://github.com/actix/actix-web/issues/1313
|
||||||
|
if inner_p.flags.contains(Flags::READ_DISCONNECT) {
|
||||||
trace!("read half closed; start shutdown");
|
trace!("read half closed; start shutdown");
|
||||||
inner_p.flags.insert(Flags::SHUTDOWN);
|
inner_p.flags.insert(Flags::SHUTDOWN);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue