vert-x3 / vertx-mqtt

Vert.x MQTT
Apache License 2.0
184 stars 86 forks source link

Subscriber is disconnected by broker when using QoS0 and frequently receiving messages #188

Closed 0yves0 closed 3 years ago

0yves0 commented 3 years ago

This issue has been opened after a discussion with Julien on the Vertx user group. https://groups.google.com/g/vertx/c/CKYmKsmtGjA/m/nL85dtFMBAAJ

Version

Found in 3.9.4 Repoduced in 3.9.5 & 4.0.0

Context

After updating my application from Vert.x 3.9.3 to 3.9.4 and made the appropriate changes due to new deprecated features, I encountered MQTT client disconnections when subscribing to a topic using QoS0 and keep alive enabled. From broker side, client is disconnected due to a keep alive interval not respected.

Do you have a reproducer?

https://github.com/0yves0/vertx-mqtt-qos0-keepalive

vietj commented 3 years ago

@0yves0 thanks for the reproducer, so it is a similar issue that was fixed previously in the commit I exhibited but this time with the server sending messages that we did not care about when fixing the client sending messages case.