Skip to content

Commit

Permalink
Disconnect on error from service readiness check
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Oct 15, 2024
1 parent 5bf8f07 commit ed239f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

## [4.1.1] - 2024-10-15

* Disconnect on error from service readiness check

## [4.1.0] - 2024-10-10

* Do not check readiness for call
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ntex-mqtt"
version = "4.1.0"
version = "4.1.1"
authors = ["ntex contributors <team@ntex.rs>"]
description = "Client and Server framework for MQTT v5 and v3.1.1 protocols"
documentation = "https://docs.rs/ntex-mqtt"
Expand Down
4 changes: 2 additions & 2 deletions src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,11 +489,11 @@ where
}
// handle service readiness error
Poll::Ready(Err(err)) => {
log::trace!("{}: Service readiness check failed, stopping", self.io.tag());
log::error!("{}: Service readiness check failed, stopping", self.io.tag());
self.st = IoDispatcherState::Stop;
self.flags.insert(Flags::READY_ERR);
self.state.borrow_mut().error = Some(IoDispatcherError::Service(err));
Poll::Ready(PollService::Continue)
Poll::Ready(PollService::Item(DispatchItem::Disconnect(None)))
}
}
}
Expand Down

0 comments on commit ed239f6

Please sign in to comment.