Simone Di Luzio 2022-07-24 00:08:20 +02:00
parent f3f41a0cc7
commit d9189b246a
1 changed files with 2 additions and 1 deletions

View File

@ -1194,7 +1194,8 @@ where
let state_is_none = inner_p.state.is_none();
// 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");
inner_p.flags.insert(Flags::SHUTDOWN);
}