eProsima / Fast-DDS

The most complete DDS - Proven: Plenty of success cases. Looking for commercial support? Contact info@eprosima.com
https://eprosima.com
Apache License 2.0
2.04k stars 730 forks source link

[21170] Fix DS servers not connecting due to ports logic #4941

Closed cferreiragonz closed 3 weeks ago

cferreiragonz commented 3 weeks ago

Description

This PR fixes a bug that was avoiding discovery when a DS server tries to connect to another server which has a smaller physical port. The logic implemented in https://github.com/eProsima/Fast-DDS/pull/4586 needs to be used to fix the issue. It also adds support to automatically set the logical port of remote servers when the participant discoveryProtocol is configured as DiscoveryProtocol::SERVER, which was missing.

@Mergifyio backport 2.14.x 2.13.x 2.10.x 2.6.x

Contributor Checklist

Reviewer Checklist

cferreiragonz commented 3 weeks ago

@richiprosima please test_3 discovery-server

MiguelCompany commented 3 weeks ago

@Mergifyio backport 2.14.x 2.13.x 2.10.x 2.6.x

mergify[bot] commented 3 weeks ago

backport 2.14.x 2.13.x 2.10.x 2.6.x

✅ Backports have been created

* [#4949 [21170] Fix DS servers not connecting due to ports logic (backport #4941)](https://github.com/eProsima/Fast-DDS/pull/4949) has been created for branch `2.14.x` * [#4950 [21170] Fix DS servers not connecting due to ports logic (backport #4941)](https://github.com/eProsima/Fast-DDS/pull/4950) has been created for branch `2.13.x` * [#4951 [21170] Fix DS servers not connecting due to ports logic (backport #4941)](https://github.com/eProsima/Fast-DDS/pull/4951) has been created for branch `2.10.x` * [#4952 [21170] Fix DS servers not connecting due to ports logic (backport #4941)](https://github.com/eProsima/Fast-DDS/pull/4952) has been created for branch `2.6.x`
MiguelCompany commented 3 weeks ago

@cferreiragonz There's a warning in windows. Could you take a look?

MiguelCompany commented 3 weeks ago

@richiprosima Please test_3 discovery-server

cferreiragonz commented 3 weeks ago

@richiprosima Please test_3 discovery-server

cferreiragonz commented 3 weeks ago

@richiprosima Please test_3 discovery-server