Skip to content

Commit a358855

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 a358855

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • src/cpp/rtps/builtin/liveliness

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

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

845845
if (0 < automatic_writers_.size())
846846
{
847+
// Assert liveliness for local readers (ADDED)
848+
if (automatic_readers_)
849+
{
850+
sub_liveliness_manager_->assert_liveliness(
851+
dds::AUTOMATIC_LIVELINESS_QOS,
852+
mp_participant->getGuid().guidPrefix);
853+
}
854+
847855
lock.unlock();
848856
return send_liveliness_message(automatic_instance_handle_);
849857
}

0 commit comments

Comments
 (0)