1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-28 07:47:49 +02:00

support client request's async body

This commit is contained in:
Nikolay Kim
2018-02-19 22:48:27 -08:00
parent 3f95cce9e8
commit 03912d2089
8 changed files with 217 additions and 28 deletions

View File

@@ -494,7 +494,6 @@ impl<S: 'static, H> ProcessResponse<S, H> {
IOState::Payload(mut body) => {
match body.poll() {
Ok(Async::Ready(None)) => {
self.iostate = IOState::Done;
if let Err(err) = io.write_eof() {
info.error = Some(err.into());
return Ok(FinishingMiddlewares::init(info, self.resp))
@@ -536,7 +535,6 @@ impl<S: 'static, H> ProcessResponse<S, H> {
match frame {
Frame::Chunk(None) => {
info.context = Some(ctx);
self.iostate = IOState::Done;
if let Err(err) = io.write_eof() {
info.error = Some(err.into());
return Ok(
@@ -566,7 +564,6 @@ impl<S: 'static, H> ProcessResponse<S, H> {
res.unwrap()
},
Ok(Async::Ready(None)) => {
self.iostate = IOState::Done;
break
}
Ok(Async::NotReady) => {