Skip to content

[22756] Fix error handling logic in try_setting_buffer_size#5631

Merged
MiguelCompany merged 2 commits intomasterfrom
hotfix/22208
Feb 10, 2025
Merged

[22756] Fix error handling logic in try_setting_buffer_size#5631
MiguelCompany merged 2 commits intomasterfrom
hotfix/22208

Conversation

@MiguelCompany
Copy link
Copy Markdown
Member

@MiguelCompany MiguelCompany commented Feb 6, 2025

Description

This should fix #4684 by applying the last suggested changes

@Mergifyio backport 3.1.x 3.0.x 2.14.x 2.10.x

Contributor Checklist

  • Commit messages follow the project guidelines.
  • The code follows the style guidelines of this project.
  • NO: 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.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Copy link
Copy Markdown
Contributor

@juanlofer-eprosima juanlofer-eprosima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MiguelCompany MiguelCompany requested review from richiprosima and removed request for richiprosima February 10, 2025 11:43
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
@MiguelCompany
Copy link
Copy Markdown
Member Author

@Mergifyio backport 3.1.x 3.0.x 2.14.x 2.10.x

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Feb 10, 2025

backport 3.1.x 3.0.x 2.14.x 2.10.x

✅ Backports have been created

Details

@MiguelCompany MiguelCompany merged commit 7259840 into master Feb 10, 2025
15 of 16 checks passed
@MiguelCompany MiguelCompany deleted the hotfix/22208 branch February 10, 2025 18:49
mergify bot pushed a commit that referenced this pull request Feb 10, 2025
* Refs #22208. Fix error handling logic in `try_setting_buffer_size`.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Refs #22756. Apply suggestion.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

---------

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
(cherry picked from commit 7259840)
mergify bot pushed a commit that referenced this pull request Feb 10, 2025
* Refs #22208. Fix error handling logic in `try_setting_buffer_size`.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Refs #22756. Apply suggestion.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

---------

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
(cherry picked from commit 7259840)
mergify bot pushed a commit that referenced this pull request Feb 10, 2025
* Refs #22208. Fix error handling logic in `try_setting_buffer_size`.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Refs #22756. Apply suggestion.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

---------

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
(cherry picked from commit 7259840)
mergify bot pushed a commit that referenced this pull request Feb 10, 2025
* Refs #22208. Fix error handling logic in `try_setting_buffer_size`.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Refs #22756. Apply suggestion.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

---------

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
(cherry picked from commit 7259840)

# Conflicts:
#	src/cpp/rtps/transport/asio_helpers.hpp
Javgilavi pushed a commit that referenced this pull request Feb 11, 2025
* Refs #22208. Fix error handling logic in `try_setting_buffer_size`.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Refs #22756. Apply suggestion.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

---------

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
(cherry picked from commit 7259840)
MiguelCompany added a commit that referenced this pull request Feb 11, 2025
* Refs #22208. Fix error handling logic in `try_setting_buffer_size`.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Refs #22756. Apply suggestion.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

---------

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
(cherry picked from commit 7259840)

Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
Javgilavi pushed a commit that referenced this pull request Feb 12, 2025
* Refs #22208. Fix error handling logic in `try_setting_buffer_size`.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Refs #22756. Apply suggestion.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

---------

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
(cherry picked from commit 7259840)

Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
EugenioCollado pushed a commit that referenced this pull request Feb 17, 2025
* Refs #22208. Fix error handling logic in `try_setting_buffer_size`.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Refs #22756. Apply suggestion.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

---------

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
(cherry picked from commit 7259840)

Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
MiguelCompany added a commit that referenced this pull request May 29, 2025
* Refs #22208. Fix error handling logic in `try_setting_buffer_size`.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Refs #22756. Apply suggestion.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

---------

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
MiguelCompany added a commit that referenced this pull request May 29, 2025
…, #5631) (#5563)

* Handle socket buffer size setting when system's maximum exceeded (#5527)

* Regression tests for asio_helpers socket buffer size

Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com>

* Regression tests udp & tcp

Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com>

* Refs #22210. Ensure that actual set value is returned by `asio_helpers::try_setting_buffer_size`

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Fix corner case infinite loop

Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com>

* Uncrustify

Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com>

* Fix UDP tests

Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com>

* Fix windows compilation

Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com>

* Applied suggestions to regression test

Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com>

* Applied suggestions to udp tests

Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com>

* Uncrustify

Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com>

---------

Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Co-authored-by: Miguel Company <miguelcompany@eprosima.com>

* Fix error handling logic in `try_setting_buffer_size` (#5631)

* Refs #22208. Fix error handling logic in `try_setting_buffer_size`.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Refs #22756. Apply suggestion.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

---------

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Fix included headers

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Avoid using make_unique.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

---------

Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
Co-authored-by: EugenioCollado <121509066+EugenioCollado@users.noreply.github.com>
Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
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.

[22208] The SocketTransportDescriptor::min_send_buffer_size() method returns too large value when exceeded net.core.wmem_max

2 participants