From 5b6d7cddbfb83bc556ae00c7738cea7f1f320350 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 1 Mar 2018 18:26:26 -0800 Subject: [PATCH] Fix payload parse in situation when socket data is not ready --- CHANGES.md | 4 +++- src/server/h1.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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)