mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-27 23:42:56 +01:00
fix error handling
This commit is contained in:
parent
48a1c7320c
commit
112a7b6b1b
@ -1,5 +1,10 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
|
## [0.1.1] - 2018-xx-xx
|
||||||
|
|
||||||
|
* Fix framed transport error handling
|
||||||
|
|
||||||
|
|
||||||
## [0.1.0] - 2018-12-09
|
## [0.1.0] - 2018-12-09
|
||||||
|
|
||||||
* Move utils services to separate crate
|
* Move utils services to separate crate
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "actix-utils"
|
name = "actix-utils"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||||
description = "Actix utils - various actix net related services"
|
description = "Actix utils - various actix net related services"
|
||||||
keywords = ["network", "framework", "async", "futures"]
|
keywords = ["network", "framework", "async", "futures"]
|
||||||
@ -18,7 +18,7 @@ name = "actix_utils"
|
|||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-service = "0.1.1"
|
actix-service = "0.1.2"
|
||||||
actix-codec = "0.1.0"
|
actix-codec = "0.1.0"
|
||||||
actix-rt = "0.1.0"
|
actix-rt = "0.1.0"
|
||||||
bytes = "0.4"
|
bytes = "0.4"
|
||||||
|
@ -371,7 +371,9 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
TransportState::Error(err) => {
|
TransportState::Error(err) => {
|
||||||
if self.poll_response() || !self.framed.is_write_buf_empty() {
|
if self.framed.is_write_buf_empty()
|
||||||
|
|| (self.poll_response() || self.framed.is_write_buf_empty())
|
||||||
|
{
|
||||||
Err(err)
|
Err(err)
|
||||||
} else {
|
} else {
|
||||||
self.state = TransportState::Error(err);
|
self.state = TransportState::Error(err);
|
||||||
|
Loading…
Reference in New Issue
Block a user