Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix corner case infinite loop
Browse files Browse the repository at this point in the history
Signed-off-by: Eugenio Collado <[email protected]>
EugenioCollado committed Dec 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 48a5964 commit 61303f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/rtps/transport/asio_helpers.hpp
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ struct asio_helpers
asio::error_code ec;

final_buffer_value = initial_buffer_value;
while (final_buffer_value >= minimum_buffer_value)
while (final_buffer_value > minimum_buffer_value)
{
int32_t value_to_set = static_cast<int32_t>(final_buffer_value);
socket.set_option(BufferOptionType(value_to_set), ec);

0 comments on commit 61303f5

Please sign in to comment.