diff --git a/CHANGES.md b/CHANGES.md index bf56f4bc3..a0cd0cdf9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,8 @@ # Changes -## 0.4.1 (2018-03-xx) +## 0.4.1 (2018-03-01) + +* Fix payload parse in situation when socket data is not ready. * Fix Session mutable borrow lifetime #87 diff --git a/src/server/h1.rs b/src/server/h1.rs index 605aaed27..4d528918a 100644 --- a/src/server/h1.rs +++ b/src/server/h1.rs @@ -431,7 +431,7 @@ impl Reader { break true }, Ok(Async::NotReady) => - break false, + return Ok(Async::NotReady), Err(err) => { payload.tx.set_error(err.into()); return Err(ReaderError::Payload)