Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
simorex80 committed Jan 24, 2023
1 parent dd9ac4d commit 097e6d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion actix-http/src/h1/dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,9 @@ 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 {
// 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);
}
Expand Down

0 comments on commit 097e6d8

Please sign in to comment.