Skip to content

Commit

Permalink
Do not send sub declarations to multicast on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Sep 8, 2023
1 parent 62d0f8e commit d0f08e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zenoh/src/net/routing/pubsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,9 @@ pub fn declare_client_subscription(
);
} else {
propagate_simple_subscription(&mut wtables, &res, &propa_sub_info, face);
// This introduced a buffer overflow on windows
// TODO: Let's deactivate this on windows until Fixed
#[cfg(not(windows))]
for mcast_group in &wtables.mcast_groups {
mcast_group.primitives.send_declare(Declare {
ext_qos: ext::QoSType::default(),
Expand All @@ -480,6 +483,9 @@ pub fn declare_client_subscription(
}
_ => {
propagate_simple_subscription(&mut wtables, &res, &propa_sub_info, face);
// This introduced a buffer overflow on windows
// TODO: Let's deactivate this on windows until Fixed
#[cfg(not(windows))]
for mcast_group in &wtables.mcast_groups {
mcast_group.primitives.send_declare(Declare {
ext_qos: ext::QoSType::default(),
Expand Down

0 comments on commit d0f08e8

Please sign in to comment.