Skip to content

Commit

Permalink
Refs #21959: Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Dominguez <[email protected]>
  • Loading branch information
Mario-DL committed Oct 22, 2024
1 parent 0616997 commit 78fed36
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/cpp/rtps/attributes/RTPSParticipantAttributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,12 @@ static void setup_transports_large_data(
{
if (!intraprocess_only)
{
auto shm_transport = create_shm_transport(att, options);
att.userTransports.push_back(shm_transport);
#ifdef SHM_TRANSPORT_BUILTIN
setup_transports_shm(att, options);

auto shm_loc = fastdds::rtps::SHMLocator::create_locator(0, fastdds::rtps::SHMLocator::Type::UNICAST);
att.defaultUnicastLocatorList.push_back(shm_loc);
#endif // ifdef SHM_TRANSPORT_BUILTIN

auto tcp_transport = create_tcpv4_transport(att, options);
att.userTransports.push_back(tcp_transport);
Expand Down Expand Up @@ -260,11 +261,12 @@ static void setup_transports_large_datav6(
{
if (!intraprocess_only)
{
auto shm_transport = create_shm_transport(att, options);
att.userTransports.push_back(shm_transport);
#ifdef SHM_TRANSPORT_BUILTIN
setup_transports_shm(att, options);

auto shm_loc = fastdds::rtps::SHMLocator::create_locator(0, fastdds::rtps::SHMLocator::Type::UNICAST);
att.defaultUnicastLocatorList.push_back(shm_loc);
#endif // ifdef SHM_TRANSPORT_BUILTIN

auto tcp_transport = create_tcpv6_transport(att, options);
att.userTransports.push_back(tcp_transport);
Expand Down

0 comments on commit 78fed36

Please sign in to comment.