eProsima / Micro-XRCE-DDS-Client

Micro XRCE-DDS Client repository. Looking for commercial support? Contact info@eprosima.com
Apache License 2.0
130 stars 82 forks source link

Reconnect to Agent #367

Closed dzusan closed 1 year ago

dzusan commented 1 year ago

Hello,

I'm using this client with the Micro-XRCE-DDS-Agent and UDP transport. When the connection goes down and then up, or the agent shuts down and starts up again, data stream is not automatically restored. Now I periodically run uxr_ping_agent_session, if the Agent does not responding I recreate session, all streams and topics from scratch.

Is there a native way to reconnect to the Agent?

pablogs9 commented 1 year ago

You are taking the recommended solution

dzusan commented 1 year ago

Ok, thank you.

Such approach requires serious middleware on the user side.