diff --git a/ntex-io/CHANGES.md b/ntex-io/CHANGES.md index 8389d61d..f2ae2db4 100644 --- a/ntex-io/CHANGES.md +++ b/ntex-io/CHANGES.md @@ -1,5 +1,9 @@ # Changes +## [2.7.1] - 2024-10-15 + +* Disconnect on error from service readiness check + ## [2.7.0] - 2024-10-10 * Do not check readiness for dispatcher call diff --git a/ntex-io/Cargo.toml b/ntex-io/Cargo.toml index 8ab6d0a2..aa72bb6a 100644 --- a/ntex-io/Cargo.toml +++ b/ntex-io/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ntex-io" -version = "2.7.0" +version = "2.7.1" authors = ["ntex contributors "] description = "Utilities for encoding and decoding frames" keywords = ["network", "framework", "async", "futures"] diff --git a/ntex-io/src/dispatcher.rs b/ntex-io/src/dispatcher.rs index fad78307..faca71eb 100644 --- a/ntex-io/src/dispatcher.rs +++ b/ntex-io/src/dispatcher.rs @@ -521,7 +521,7 @@ where self.st = DispatcherState::Stop; self.error = Some(err); self.flags.insert(Flags::READY_ERR); - Poll::Ready(PollService::Continue) + Poll::Ready(PollService::Item(DispatchItem::Disconnect(None))) } } } diff --git a/ntex-rt/build.rs b/ntex-rt/build.rs index dd598028..7a1380d4 100644 --- a/ntex-rt/build.rs +++ b/ntex-rt/build.rs @@ -14,7 +14,7 @@ fn main() { } if features.is_empty() { - panic!("Runtime must be selected '--feature=ntex\\$runtime', available options are \"compio\", \"tokio\", \"async-std\", \"glommio\""); + panic!("Runtime must be selected '--feature=ntex/$runtime', available options are \"compio\", \"tokio\", \"async-std\", \"glommio\""); } else if features.len() > 1 { panic!( "Only one runtime feature could be selected, current selection {:?}", diff --git a/ntex/Cargo.toml b/ntex/Cargo.toml index a38680ff..8f71e68c 100644 --- a/ntex/Cargo.toml +++ b/ntex/Cargo.toml @@ -70,7 +70,7 @@ ntex-util = "2" ntex-bytes = "0.1.27" ntex-server = "2.4" ntex-h2 = "1.1" -ntex-rt = "0.4.18" +ntex-rt = "0.4.19" ntex-io = "2.7" ntex-net = "2.4" ntex-tls = "2.1"