eProsima / Micro-XRCE-DDS-Agent

Micro XRCE-DDS Agent respository. Looking for commercial support? Contact info@eprosima.com
Apache License 2.0
113 stars 81 forks source link

Fix exception on Heartbeat filter #314

Closed pablogs9 closed 2 years ago

pablogs9 commented 2 years ago

In order to prioritize Heartbeats in the incoming XRCE message queue, the incoming XRCE submessage is pre-deserialized to check:

  1. There is one and only one submessage in the message
  2. This submessage is a Heartbeat.

In order to do so, some check has to be done in order to avoid wrong or invalid XRCE messages.

pablogs9 commented 2 years ago

Tests here: https://github.com/eProsima/Micro-XRCE-DDS/pull/147

richiprosima commented 2 years ago

Build status: