Skip to content

Fix communications with localhost only <2.0.x> [9744]#1520

Merged
MiguelCompany merged 10 commits into2.0.xfrom
bugfix/localhost-only/2.0.x
Oct 28, 2020
Merged

Fix communications with localhost only <2.0.x> [9744]#1520
MiguelCompany merged 10 commits into2.0.xfrom
bugfix/localhost-only/2.0.x

Conversation

@MiguelCompany
Copy link
Copy Markdown
Member

This should fix the issue reported on ros2/ros2#1052

Multicast was not correctly being sent through localhost interface when no network interface was detected. This PR changes the mechanism from adding a localhost initial peer to binding the outbound socket to the local interface.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
…aces.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
@MiguelCompany MiguelCompany added this to the v2.0.2 milestone Oct 27, 2020
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
@MiguelCompany MiguelCompany force-pushed the bugfix/localhost-only/2.0.x branch from 46cd368 to f6a8694 Compare October 27, 2020 08:43
@richiware
Copy link
Copy Markdown
Member

Could you write a regression test using test_UDPv4Transport? This implies implementing a new feature in test_UDPv4Transport: be able to return zero interfaces to Fast-DDS.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
@MiguelCompany MiguelCompany force-pushed the bugfix/localhost-only/2.0.x branch from 0e8bd60 to 597df9a Compare October 27, 2020 10:37
@richiware
Copy link
Copy Markdown
Member

Build status:

  • Linux Build Status
  • Linux aarch64Build Status
  • Mac Build Status
  • Windows Build Status

@MiguelCompany
Copy link
Copy Markdown
Member Author

Failures seem unrelated

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.

2 participants