Skip to content

Commit

Permalink
fix(http): fix another instance of keep-alive busy-looping
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Feb 23, 2017
1 parent a6f7f27 commit 6eb0753
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/http/conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,10 @@ where I: Io,
// When writing finishes, we need to wake the task up in case there
// is more reading that can be done, to start a new message.
match self.state.reading {
Reading::Body(..) => return,
Reading::Body(..) |
Reading::KeepAlive => return,
Reading::Init |
Reading::KeepAlive | Reading::Closed => (),
Reading::Closed => (),
}

match self.state.writing {
Expand Down

0 comments on commit 6eb0753

Please sign in to comment.