1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-26 19:41:12 +00:00

Fix payload parse in situation when socket data is not ready

This commit is contained in:
Nikolay Kim 2018-03-01 18:26:26 -08:00
parent 4aaf9f08f8
commit 5b6d7cddbf
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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)