From 6eb07539214644fbcfff6e950bfbc688bf4764c2 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Thu, 23 Feb 2017 13:36:07 -0800 Subject: [PATCH] fix(http): fix another instance of keep-alive busy-looping --- src/http/conn.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/http/conn.rs b/src/http/conn.rs index 21b50394..f25cd0c9 100644 --- a/src/http/conn.rs +++ b/src/http/conn.rs @@ -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 {