1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-07-03 17:41:30 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
7f12b754e9 Handle socket read disconnect 2019-05-25 03:07:40 -07:00
3f196f469d update version 2019-05-25 02:13:04 -07:00
4 changed files with 18 additions and 5 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "actix-web"
version = "1.0.0-rc"
version = "1.0.0"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
description = "Actix web is a simple, pragmatic and extremely fast web framework for Rust."
readme = "README.md"
@ -102,7 +102,7 @@ rustls = { version = "0.15", optional = true }
[dev-dependencies]
actix-http = { version = "0.2.0", features=["ssl", "brotli", "flate2-zlib"] }
actix-http-test = { version = "0.2.0", features=["ssl"] }
actix-files = { version = "0.1.0-beta.4" }
actix-files = { version = "0.1.0" }
rand = "0.6"
env_logger = "0.6"
serde_derive = "1.0"

View File

@ -1,5 +1,12 @@
# Changes
## [0.2.1] - 2019-05-2
### Fixed
* Handle socket read disconnect
## [0.2.0] - 2019-05-12
### Changed

View File

@ -1,6 +1,6 @@
[package]
name = "actix-http"
version = "0.2.0"
version = "0.2.1"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
description = "Actix http primitives"
readme = "README.md"
@ -47,7 +47,7 @@ secure-cookies = ["ring"]
actix-service = "0.4.0"
actix-codec = "0.1.2"
actix-connect = "0.2.0"
actix-utils = "0.4.0"
actix-utils = "0.4.1"
actix-server-config = "0.1.1"
actix-threadpool = "0.1.0"

View File

@ -583,6 +583,9 @@ where
self.ka_timer = Some(Delay::new(interval));
} else {
self.flags.insert(Flags::READ_DISCONNECT);
if let Some(mut payload) = self.payload.take() {
payload.set_error(PayloadError::Incomplete(None));
}
return Ok(());
}
} else {
@ -694,7 +697,10 @@ where
if let Some(true) =
read_available(&mut inner.io, &mut inner.read_buf)?
{
inner.flags.insert(Flags::READ_DISCONNECT)
inner.flags.insert(Flags::READ_DISCONNECT);
if let Some(mut payload) = inner.payload.take() {
payload.feed_eof();
}
}
}