shoenig / go-mqtt

A development fork of the Eclipse Paho Go MQTT client
http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.golang.git/
Eclipse Public License 1.0
13 stars 6 forks source link

incoming QoS 2 publishes should only be given to app if not processed #22

Open robert17 opened 10 years ago

robert17 commented 10 years ago

If the server fails between the client sending a pubrec and receiving a pubrel, a QoS 2 publish can be delivered twice tot he application.

We should update the persistence state of the message after returning from the call to the applications delivery handler. However, this is still an issue in the case where the delivery handler is launched in a separate goroutine.