mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-27 15:29:03 +02:00
Fix payload parse in situation when socket data is not ready
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user