CocoaMQTT icon indicating copy to clipboard operation
CocoaMQTT copied to clipboard

The re-send mechanism is not implemented

Open sturza opened this issue 6 years ago • 4 comments

I need to find out the following: if a message fails to send(network issues etc) does the library try to send the exact same message again and again until it succeeds? Or it goes to the next message in the buffer and tries to send that? It's important that messages are sent in order.

sturza avatar Oct 02 '18 09:10 sturza

Hi, @sturza. The message order has ruled in MQTT 3.1.1 protocol, and CocoaMQTT should follow this. (see: 4.3 Qos and protocol flows 4.6 Message ordering)

But, the re-send mechanism not implemented now. It will be dropped after a timeout arrived. I will fix that in recently.

HJianBo avatar Dec 27 '18 12:12 HJianBo

Is this done?

keshavx11 avatar May 09 '19 10:05 keshavx11

Also, if done, is the queue in-memory or does it persist even if i terminate the app?

keshavx11 avatar May 09 '19 13:05 keshavx11

In the v1.2.1 we save the un-acknowledge message to the memory for qos 1/2 messages.

We plan to persist these message to file in the v1.3.0

HJianBo avatar May 20 '19 09:05 HJianBo