mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-18 05:41:50 +01:00
Fix payload parse in situation when socket data is not ready
This commit is contained in:
parent
4aaf9f08f8
commit
5b6d7cddbf
@ -1,6 +1,8 @@
|
|||||||
# Changes
|
# 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
|
* Fix Session mutable borrow lifetime #87
|
||||||
|
|
||||||
|
@ -431,7 +431,7 @@ impl Reader {
|
|||||||
break true
|
break true
|
||||||
},
|
},
|
||||||
Ok(Async::NotReady) =>
|
Ok(Async::NotReady) =>
|
||||||
break false,
|
return Ok(Async::NotReady),
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
payload.tx.set_error(err.into());
|
payload.tx.set_error(err.into());
|
||||||
return Err(ReaderError::Payload)
|
return Err(ReaderError::Payload)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user