Skip to content

Commit

Permalink
Fix bug in routers replying to peers liveliness queries (#1233)
Browse files Browse the repository at this point in the history
* Fix bug in routers replying to peers livaliness queries

* Add liveliness checks to routing two_node_combination and three_node_combination tests

* Fix stable build

* Change delays

* Remove put and get delays

* Add liveliness sub checks to routing two_node_combination and three_node_combination tests
  • Loading branch information
OlivierHecart authored Jul 16, 2024
1 parent 952cef8 commit efffcb3
Show file tree
Hide file tree
Showing 2 changed files with 220 additions and 28 deletions.
5 changes: 4 additions & 1 deletion zenoh/src/net/routing/hat/router/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,10 @@ pub(crate) fn declare_token_interest(
aggregate: bool,
send_declare: &mut SendDeclare,
) {
if mode.current() && face.whatami == WhatAmI::Client {
if mode.current()
&& (face.whatami == WhatAmI::Client
|| (face.whatami == WhatAmI::Peer && !hat!(tables).full_net(WhatAmI::Peer)))
{
let interest_id = (!mode.future()).then_some(id);
if let Some(res) = res.as_ref() {
if aggregate {
Expand Down
Loading

0 comments on commit efffcb3

Please sign in to comment.