Skip to content

Commit c2f3280

Browse files
Remove repeated header include & Fix log (#5660)
* Remove repeated header include Signed-off-by: cferreiragonz <[email protected]> * Fix Log & comment Signed-off-by: cferreiragonz <[email protected]> --------- Signed-off-by: cferreiragonz <[email protected]> (cherry picked from commit 1d8a6da) Co-authored-by: Carlos Ferreira González <[email protected]>
1 parent 735a643 commit c2f3280

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/cpp/rtps/transport/TCPTransportInterface.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040

4141
#include <fastdds/config.hpp>
4242
#include <fastdds/dds/log/Log.hpp>
43-
#include <fastdds/dds/log/Log.hpp>
4443
#include <fastdds/rtps/attributes/PropertyPolicy.hpp>
4544
#include <fastdds/rtps/common/CDRMessage_t.hpp>
4645
#include <fastdds/rtps/common/LocatorSelector.hpp>
@@ -541,13 +540,13 @@ bool TCPTransportInterface::init(
541540

542541
if (cfg_send_size > 0 && send_size != cfg_send_size)
543542
{
544-
EPROSIMA_LOG_WARNING(TRANSPORT_TCP, "UDPTransport sendBufferSize could not be set to the desired value. "
543+
EPROSIMA_LOG_WARNING(TRANSPORT_TCP, "TCPTransport sendBufferSize could not be set to the desired value. "
545544
<< "Using " << send_size << " instead of " << cfg_send_size);
546545
}
547546

548547
if (cfg_recv_size > 0 && recv_size != cfg_recv_size)
549548
{
550-
EPROSIMA_LOG_WARNING(TRANSPORT_TCP, "UDPTransport receiveBufferSize could not be set to the desired value. "
549+
EPROSIMA_LOG_WARNING(TRANSPORT_TCP, "TCPTransport receiveBufferSize could not be set to the desired value. "
551550
<< "Using " << recv_size << " instead of " << cfg_recv_size);
552551
}
553552

@@ -706,7 +705,7 @@ void TCPTransportInterface::SenderResourceHasBeenClosed(
706705
// Socket disconnection should always be done in the listening thread (or in the transport cleanup, when receiver resources have
707706
// already been destroyed and the listening thread had consequently finished).
708707
// An assert() clause finding the respective channel resource cannot be made since in LARGE DATA scenario, where the PDP discovery is done
709-
// via UDP, a server's send resource can be created with without any associated channel resource until receiving a connection request from
708+
// via UDP, a server's send resource can be created without any associated channel resource until receiving a connection request from
710709
// the client.
711710
// The send resource locator is invalidated to prevent further use of associated channel.
712711
LOCATOR_INVALID(locator);

0 commit comments

Comments
 (0)