Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix message storm when using multiple peers with multicast #1615

Merged
merged 4 commits into from
Nov 29, 2024
Merged

Conversation

OlivierHecart
Copy link
Contributor

@OlivierHecart OlivierHecart commented Nov 27, 2024

The first commit avoids the declare message loop that occurred when using multiple peers with multicast.

Then this PR prevents any routing from/to multicast groups from the same process (router) as this can easily lead to messages loop.

@OlivierHecart OlivierHecart added the bug Something isn't working label Nov 27, 2024
@OlivierHecart OlivierHecart linked an issue Nov 27, 2024 that may be closed by this pull request
@OlivierHecart OlivierHecart changed the title Fix messages storm using multicast Fix message storm when using multiple peers with multicast Nov 27, 2024
@OlivierHecart OlivierHecart marked this pull request as ready for review November 28, 2024 09:04
(Some(l), Some(r)) => l != r,
_ => true,
}
&& out_face.mcast_group.is_none()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's to avoid sending data to a multicast group when in client mode.
This is also to align with zenoh-pico where joining a multicast group can only be done when in peer mode.

@Mallets Mallets merged commit dee257f into main Nov 29, 2024
24 checks passed
@Mallets Mallets deleted the fix/multicast branch November 29, 2024 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Message storm when using multiple peers with multicast
4 participants