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 (backport #4941) #4951

Closed mergify[bot] closed 2 weeks ago

mergify[bot] 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

MiguelCompany commented 2 weeks ago

@richiprosima Please test discovery-server