eclipse-paho / paho.mqtt.golang

Other
2.77k stars 534 forks source link

Qos 0 during reconnect #630

Closed 12bchl closed 1 year ago

12bchl commented 1 year ago

https://github.com/eclipse/paho.mqtt.golang/blob/e3fa5031fa86ee9233dfebd71a1879f6b2b813b4/client.go#L759

How does the message get persisted in store if we return right away before persistOutbound?

MattBrittan commented 1 year ago

They dont; Qos0 messages are dropped if there is no connection (only qos1+ messages have any delivery guarantees).

12bchl commented 1 year ago

Understood, just confused on the comment. NP

MattBrittan commented 1 year ago

You are right - the comment is wrong!