mirror of
https://github.com/actix/actix-web.git
synced 2024-11-22 17:41:11 +00:00
do no stop on write_eof
This commit is contained in:
parent
f802fe09e6
commit
f90bc0caae
3 changed files with 2 additions and 6 deletions
|
@ -77,8 +77,7 @@ tokio-tls = { version="0.1", optional = true }
|
|||
tokio-openssl = { version="0.1", optional = true }
|
||||
|
||||
[dependencies.actix]
|
||||
#version = "^0.4.2"
|
||||
git = "https://github.com/actix/actix.git"
|
||||
version = "^0.4.2"
|
||||
|
||||
[dependencies.openssl]
|
||||
version = "0.9"
|
||||
|
|
|
@ -67,5 +67,3 @@ This project is licensed under either of
|
|||
* MIT license ([LICENSE-MIT](LICENSE-MIT) or [http://opensource.org/licenses/MIT](http://opensource.org/licenses/MIT))
|
||||
|
||||
at your option.
|
||||
|
||||
[![Analytics](https://ga-beacon.appspot.com/UA-110322332-2/actix-web/readme?flat&useReferer)](https://github.com/igrigorik/ga-beacon)
|
||||
|
|
|
@ -40,7 +40,6 @@ impl<A, S> ActorContext for HttpContext<A, S> where A: Actor<Context=Self>
|
|||
{
|
||||
/// Stop actor execution
|
||||
fn stop(&mut self) {
|
||||
self.stream.push_back(Frame::Payload(None));
|
||||
self.inner.stop();
|
||||
}
|
||||
|
||||
|
@ -142,7 +141,7 @@ impl<A, S> HttpContext<A, S> where A: Actor<Context=Self> {
|
|||
/// Indicate end of streamimng payload. Also this method calls `Self::close`.
|
||||
#[inline]
|
||||
pub fn write_eof(&mut self) {
|
||||
self.stop();
|
||||
self.stream.push_back(Frame::Payload(None));
|
||||
}
|
||||
|
||||
/// Returns drain future
|
||||
|
|
Loading…
Reference in a new issue