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

Call dissociate_reader in rmw_destroy_subscription #373

Merged
merged 1 commit into from
Feb 22, 2022

Conversation

eboasson
Copy link
Collaborator

A call to dissociate_writer, like it did before, is a no-op. The result
is that the ros_discovery_info topic sample keeps growing when one
creates and destroy subscriptions in the application.

Signed-off-by: Erik Boasson eb@ilities.com

A call to dissociate_writer, like it did before, is a no-op.  The result
is that the ros_discovery_info topic sample keeps growing when one
creates and destroy subscriptions in the application.

Signed-off-by: Erik Boasson <eb@ilities.com>
@omertal88
Copy link

Hello,

This PR solves an issue I'm experiencing where I occasionally replacing my subscribers with others. This over time accumulates until the message sent to ros_discovery_info is too big to be sent. At that point my network traffic will sky rocket, as the other peer keeps requesting that sample, and the sender peer can't fully send it.
I would highly appreciate if this can get cherry-picked into the upcoming galactic release.

Thank you.
Omer

@eboasson
Copy link
Collaborator Author

Thanks @omertal88 for reviewing it. It seems silly to run the full CI for this change, so below are the badges for a run with just test_rmw_implementation and test_rclcpp as a sanity check:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@eboasson eboasson merged commit 1f7f164 into ros2:master Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants