Skip to content

[23248] Fix DS initialization on "any" if no interfaces are available (backport #5850)#5876

Merged
MiguelCompany merged 1 commit into3.2.xfrom
mergify/bp/3.2.x/pr-5850
Jul 1, 2025
Merged

[23248] Fix DS initialization on "any" if no interfaces are available (backport #5850)#5876
MiguelCompany merged 1 commit into3.2.xfrom
mergify/bp/3.2.x/pr-5850

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Jun 16, 2025

Description

This PR fixes a bug in which the Discovery Server initialization failed when configured to listen on any (0.0.0.0) if no interfaces were available.
It also adds a new suite of tests creating an scenario simulating that no interfaces are available, extending the test_transport functionality of simulate_no_interfaces.

This PR fixes #5835.

@Mergifyio backport 3.2.x 2.14.x

Contributor Checklist

  • Commit messages follow the project guidelines.

  • The code follows the style guidelines of this project.

  • Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added; the added tests pass locally

  • N/A Any new/modified methods have been properly documented using Doxygen.

  • N/A Any new configuration API has an equivalent XML API (with the corresponding XSD extension)

  • Changes are backport compatible: they do NOT break ABI nor change library core behavior.

  • Changes are API compatible.
    -N/A New feature has been added to the versions.md file (if applicable).

  • N/A New feature has been documented/Current behavior is correctly described in the documentation.

  • Applicable backports have been included in the description.

Reviewer Checklist

  • The PR has a milestone assigned.
  • The title and description correctly express the PR's purpose.
  • Check contributor checklist is correct.
  • If this is a critical bug fix, backports to the critical-only supported branches have been requested.
  • Check CI results: changes do not issue any warning.
  • Check CI results: failing tests are unrelated with the changes.

This is an automatic backport of pull request #5850 done by [Mergify](https://mergify.com).

@MiguelCompany
Copy link
Copy Markdown
Member

@Mergifyio rebase

* Refs #23248: Add regression test

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Use localhost if no interfaces are found

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Fix permissions of .bash

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: NITs

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 4e6a68f)
@mergify
Copy link
Copy Markdown
Contributor Author

mergify bot commented Jun 20, 2025

rebase

✅ Branch has been successfully rebased

@MiguelCompany MiguelCompany force-pushed the mergify/bp/3.2.x/pr-5850 branch from a564925 to 7d8f2a1 Compare June 20, 2025 06:39
@MiguelCompany MiguelCompany self-requested a review June 20, 2025 06:39
@github-actions github-actions bot added the ci-pending PR which CI is running label Jun 20, 2025
@MiguelCompany MiguelCompany merged commit ac99235 into 3.2.x Jul 1, 2025
22 checks passed
@MiguelCompany MiguelCompany deleted the mergify/bp/3.2.x/pr-5850 branch July 1, 2025 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-pending PR which CI is running

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants