From 1822bdc90a9011e65864d795ee17f215c3e7cf7f Mon Sep 17 00:00:00 2001 From: Miguel Company Date: Fri, 24 May 2024 08:48:52 +0200 Subject: [PATCH] Refs #21036. Update for non-backported changes Signed-off-by: Miguel Company --- src/cpp/rtps/transport/TCPTransportInterface.cpp | 2 +- src/cpp/rtps/transport/UDPTransportInterface.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp/rtps/transport/TCPTransportInterface.cpp b/src/cpp/rtps/transport/TCPTransportInterface.cpp index 7a6a54c6e7e..de753416c22 100644 --- a/src/cpp/rtps/transport/TCPTransportInterface.cpp +++ b/src/cpp/rtps/transport/TCPTransportInterface.cpp @@ -444,7 +444,7 @@ bool TCPTransportInterface::DoInputLocatorsMatch( bool TCPTransportInterface::init( const fastrtps::rtps::PropertyPolicy* properties) { - uint32_t maximumMessageSize = max_msg_size_no_frag == 0 ? s_maximumMessageSize : max_msg_size_no_frag; + uint32_t maximumMessageSize = s_maximumMessageSize; uint32_t cfg_max_msg_size = configuration()->maxMessageSize; uint32_t cfg_send_size = configuration()->sendBufferSize; uint32_t cfg_recv_size = configuration()->receiveBufferSize; diff --git a/src/cpp/rtps/transport/UDPTransportInterface.cpp b/src/cpp/rtps/transport/UDPTransportInterface.cpp index 41d1f75e820..613851509f5 100644 --- a/src/cpp/rtps/transport/UDPTransportInterface.cpp +++ b/src/cpp/rtps/transport/UDPTransportInterface.cpp @@ -122,7 +122,7 @@ bool UDPTransportInterface::DoInputLocatorsMatch( bool UDPTransportInterface::init( const fastrtps::rtps::PropertyPolicy*) { - uint32_t maximumMessageSize = max_msg_size_no_frag == 0 ? s_maximumMessageSize : max_msg_size_no_frag; + uint32_t maximumMessageSize = s_maximumMessageSize; uint32_t cfg_max_msg_size = configuration()->maxMessageSize; uint32_t cfg_send_size = configuration()->sendBufferSize; uint32_t cfg_recv_size = configuration()->receiveBufferSize;