Skip to content

Commit

Permalink
Fix Conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
  • Loading branch information
cferreiragonz committed Mar 26, 2024
1 parent 30b7540 commit c3e6242
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 15 deletions.
9 changes: 3 additions & 6 deletions src/cpp/fastdds/publisher/DataWriterImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,18 +334,15 @@ class DataWriterImpl : protected rtps::IReaderDataFilter

DataWriterQos qos_;

//! DataWriterListener
DataWriterListener* listener_ = nullptr;

//! Mutex to protect listener_
std::mutex listener_mutex_;

//!History
DataWriterHistory history_;

//! DataWriterListener
DataWriterListener* listener_ = nullptr;

//! Mutex to protect listener_
std::mutex listener_mutex_;

//!Listener to capture the events of the Writer
class InnerDataWriterListener : public fastrtps::rtps::WriterListener
{
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/rtps/transport/TCPChannelResource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ ResponseCode TCPChannelResource::process_bind_request(
if (connection_status_.compare_exchange_strong(expected, eConnectionStatus::eEstablished))
{
locator_ = IPLocator::toPhysicalLocator(locator);
logInfo(RTCP_MSG, "Connection Stablished");
logInfo(RTCP_MSG, "Connection Established");
return RETCODE_OK;
}
else if (expected == eConnectionStatus::eEstablished)
Expand Down
11 changes: 4 additions & 7 deletions src/cpp/rtps/transport/TCPTransportInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -654,10 +654,9 @@ bool TCPTransportInterface::OpenOutputChannel(
// At this point, if there is no SenderResource to reuse, this is the first call to OpenOutputChannel for this locator.
// Need to check if a channel already exists for this locator.

std::unique_lock<std::mutex> scopedLock(sockets_map_mutex_);
logInfo(RTCP, "Called to OpenOutputChannel (physical: " << IPLocator::getPhysicalPort(locator) << "; logical: "
<< IPLocator::getLogicalPort(
locator) << ") @ " << IPLocator::to_string(locator));
logInfo(RTCP, "Called to OpenOutputChannel (physical: " << IPLocator::getPhysicalPort(locator) << "; logical: "
<< IPLocator::getLogicalPort(
locator) << ") @ " << IPLocator::to_string(locator));

std::lock_guard<std::mutex> socketsLock(sockets_map_mutex_);
auto channel_resource = channel_resources_.find(physical_locator);
Expand Down Expand Up @@ -725,7 +724,7 @@ bool TCPTransportInterface::OpenOutputChannel(
{
// Server side LARGE_DATA
// Act as server and wait to the other endpoint to connect. Add locator to sender_resource_list
EPROSIMA_LOG_INFO(OpenOutputChannel, "OpenOutputChannel: [WAIT_CONNECTION] (physical: "
logInfo(OpenOutputChannel, "OpenOutputChannel: [WAIT_CONNECTION] (physical: "
<< IPLocator::getPhysicalPort(locator) << "; logical: "
<< IPLocator::getLogicalPort(locator) << ") @ " << IPLocator::to_string(locator));
}
Expand Down Expand Up @@ -1195,8 +1194,6 @@ bool TCPTransportInterface::send(

if (locator_mismatch || send_buffer_size > configuration()->sendBufferSize)
{
logWarning(RTCP, "SEND [RTPS] Failed: Not connect: " << IPLocator::getLogicalPort(remote_locator) \
<< " @ IP: " << IPLocator::toIPv4string(remote_locator));
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/cpp/rtps/transport/tcp/RTCPMessageManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ ResponseCode RTCPMessageManager::processOpenLogicalPortRequest(
if (!channel->connection_established() &&
channel->connection_status_ != TCPChannelResource::eConnectionStatus::eWaitingForBindResponse)
{
EPROSIMA_LOG_ERROR(RTCP, "Trying to send [OPEN_LOGICAL_PORT_RESPONSE] without connection established.");
logError(RTCP, "Trying to send [OPEN_LOGICAL_PORT_RESPONSE] without connection established.");
sendData(channel, CHECK_LOGICAL_PORT_RESPONSE, transaction_id, nullptr, RETCODE_SERVER_ERROR);
}
else if (request.logicalPort() == 0 || !mTransport->is_input_port_open(request.logicalPort()))
Expand Down

0 comments on commit c3e6242

Please sign in to comment.