From 1d8a6da63228a5fa5d9afe7847cb7e55fb610bb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Ferreira=20Gonz=C3=A1lez?= Date: Fri, 21 Feb 2025 12:14:15 +0100 Subject: [PATCH] Remove repeated header include & Fix log (#5419) * Remove repeated header include Signed-off-by: cferreiragonz * Fix Log & comment Signed-off-by: cferreiragonz --------- Signed-off-by: cferreiragonz --- src/cpp/rtps/transport/TCPTransportInterface.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/cpp/rtps/transport/TCPTransportInterface.cpp b/src/cpp/rtps/transport/TCPTransportInterface.cpp index 946656ddbf7..8caf52022b5 100644 --- a/src/cpp/rtps/transport/TCPTransportInterface.cpp +++ b/src/cpp/rtps/transport/TCPTransportInterface.cpp @@ -40,7 +40,6 @@ #include #include -#include #include #include #include @@ -553,13 +552,13 @@ bool TCPTransportInterface::init( if (cfg_send_size > 0 && send_size != cfg_send_size) { - EPROSIMA_LOG_WARNING(TRANSPORT_TCP, "UDPTransport sendBufferSize could not be set to the desired value. " + EPROSIMA_LOG_WARNING(TRANSPORT_TCP, "TCPTransport sendBufferSize could not be set to the desired value. " << "Using " << send_size << " instead of " << cfg_send_size); } if (cfg_recv_size > 0 && recv_size != cfg_recv_size) { - EPROSIMA_LOG_WARNING(TRANSPORT_TCP, "UDPTransport receiveBufferSize could not be set to the desired value. " + EPROSIMA_LOG_WARNING(TRANSPORT_TCP, "TCPTransport receiveBufferSize could not be set to the desired value. " << "Using " << recv_size << " instead of " << cfg_recv_size); } @@ -718,7 +717,7 @@ void TCPTransportInterface::SenderResourceHasBeenClosed( // Socket disconnection should always be done in the listening thread (or in the transport cleanup, when receiver resources have // already been destroyed and the listening thread had consequently finished). // An assert() clause finding the respective channel resource cannot be made since in LARGE DATA scenario, where the PDP discovery is done - // via UDP, a server's send resource can be created with without any associated channel resource until receiving a connection request from + // via UDP, a server's send resource can be created without any associated channel resource until receiving a connection request from // the client. // The send resource locator is invalidated to prevent further use of associated channel. LOCATOR_INVALID(locator);