mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-18 05:41:50 +01:00
Drop connection if request's payload is not fulle consumed #236
This commit is contained in:
parent
577a509875
commit
90968d4333
@ -1,5 +1,8 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
|
* Drop connection if request's payload is not fulle consumed #236
|
||||||
|
|
||||||
|
|
||||||
## 0.6.8 (2018-05-20)
|
## 0.6.8 (2018-05-20)
|
||||||
|
|
||||||
* Fix scope resource path extractor #234
|
* Fix scope resource path extractor #234
|
||||||
|
@ -270,7 +270,12 @@ where
|
|||||||
debug!("Error sending data: {}", err);
|
debug!("Error sending data: {}", err);
|
||||||
return Err(());
|
return Err(());
|
||||||
}
|
}
|
||||||
_ => (),
|
Ok(Async::Ready(_)) => {
|
||||||
|
// non consumed payload in that case close connection
|
||||||
|
if self.payload.is_some() && self.tasks.is_empty() {
|
||||||
|
return Ok(Async::Ready(false))
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user