Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[21036] Handle errors when setting socket buffer sizes (backport #4760) (backport #4795) #4825

Merged
merged 2 commits into from
Jun 27, 2024

Commits on Jun 26, 2024

  1. Handle errors when setting socket buffer sizes (#4760) (#4795)

    * Refs #20972. Move code into new private methods.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Refactor on configure_send_buffer_size.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Refactor on configure_receive_buffer_size.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Check user configuration at the beginning of init method.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Use maxMessageSize as minimum possible value.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Applying changes on OpenAndBindUnicastOutputSocket.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Add helper header with template method.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Configure methods return boolean.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Configure methods use new template method.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. OpenAndBindUnicastOutputSocket uses new template method.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Changes in OpenAndBindInputSocket.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972.Setting options on TCP channels.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Doxygen.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Check limits of configured sizes.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Add UDP unit tests.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Add TCP unit tests.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Move checks in TCP to beginning of init.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Refactor for common code in UDP.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Refactor for common code in TCP.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Remove unused constants in UDP tests.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Check final configuration on unit tests.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Uncrustify.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Less strict tests.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Remove `s_minimumSocketBuffer` from tests.
    
    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    
    * Refs #20972. Deprecate `s_minimumSocketBuffer`.
    
    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>
    Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
    (cherry picked from commit 532acfa)
    mergify[bot] authored and MiguelCompany committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    eb33814 View commit details
    Browse the repository at this point in the history
  2. Fix conflicts

    Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
    MiguelCompany committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    dac08dd View commit details
    Browse the repository at this point in the history