Skip to content

Commit

Permalink
Refs #22055: Fix unique flows for TCP
Browse files Browse the repository at this point in the history
Signed-off-by: cferreiragonz <[email protected]>
  • Loading branch information
cferreiragonz committed Dec 5, 2024
1 parent 6e89d32 commit d046bdf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/cpp/rtps/participant/RTPSParticipantImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1737,7 +1737,15 @@ bool RTPSParticipantImpl::createAndAssociateReceiverswithEndpoint(
// Set port on unicast locators
for (Locator_t& loc : attributes.unicastLocatorList)
{
loc.port = port;
// Set logical port only TCP locators
if (LOCATOR_KIND_TCPv4 == loc.kind || LOCATOR_KIND_TCPv6 == loc.kind)
{
IPLocator::setLogicalPort(loc, port);
}
else
{
loc.port = port;
}
}

// Try creating receiver resources
Expand Down

0 comments on commit d046bdf

Please sign in to comment.