rumqtt icon indicating copy to clipboard operation
rumqtt copied to clipboard

In v5, restore session only if session is resumed

Open xiaocq2001 opened this issue 9 months ago • 0 comments

Current Behavior

Currently rumqttc for MQTTv5 always republish packets which aren't acked, no matter it's clean session or resume session.

Expected Behavior

For simple we can use the session_present in CONNACK returned by broker, if it's 1 the session is resumed, if it's 0 the session is new and the pending requests should be discarded.

xiaocq2001 avatar May 11 '24 08:05 xiaocq2001