Skip to content

Commit 9c6908b

Browse files
committed
Notify readers about participant internal writers
Previously, readers didn't get liveliness updates on writers within the same participant using the automatic lifetime. This caused instances to get disposed, even if the writer was still alive. This change notifies the local readers in the similiar way as this is the case for readers on a different participant. Signed-off-by: Philipp Jeske <philipp.jeske@iqsight.com>
1 parent 15519c1 commit 9c6908b

File tree

1 file changed

+7
-0
lines changed
  • src/cpp/rtps/builtin/liveliness

1 file changed

+7
-0
lines changed

src/cpp/rtps/builtin/liveliness/WLP.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,13 @@ bool WLP::automatic_liveliness_assertion()
844844

845845
if (0 < automatic_writers_.size())
846846
{
847+
if (automatic_readers_)
848+
{
849+
sub_liveliness_manager_->assert_liveliness(
850+
dds::AUTOMATIC_LIVELINESS_QOS,
851+
mp_participant->getGuid().guidPrefix);
852+
}
853+
847854
lock.unlock();
848855
return send_liveliness_message(automatic_instance_handle_);
849856
}

0 commit comments

Comments
 (0)