-
-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce the QoS to 0 when sending retained messages. #53
Conversation
Hi Matteo, thanks for the quick response. I got different behavior, but not the expected behavior.
client error tester no such packet Error: no such packet So, sorry that I can't verify the fix using my test case. Thanks for your persistence on this problem bb |
This should be it, check again. much more complex that I thought, with two bugs one on top of the other. |
Thanks for your work on this. It is very much appreciated! Progress: no bb Bruces-MacBook-Air:ab bruce$ node mqtt-test3.js connecting tester connected: undefined { "cmd": "connack", "retain": false, "qos": 0, "dup": false, "length": 2, "topic": null, "payload": null, "sessionPresent": false, "returnCode": 0 } message on topic device/tester/status online message on topic device/tester/variable/win ^C Bruces-MacBook-Air:ab bruce$ node mqtt-test3.js connecting tester connected: undefined { "cmd": "connack", "retain": false, "qos": 0, "dup": false, "length": 2, "topic": null, "payload": null, "sessionPresent": false, "returnCode": 0 } message on topic device/tester/status offline message on topic device/tester/status online message on topic device/tester/variable/win message on topic device/tester/variable/win On Wed, Jun 8, 2016 at 5:44 PM, Matteo Collina notifications@github.com
. *.* .
|
@bblumberg should be good now, let me know. |
Cool. Here is what I am observing:
Overall, one thing I did notice was that timing issues do complicate So I would verify that your fixes addressed the problem I was seeing with Thanks again for your quick work on this and being patient with my test bb On Thu, Jun 9, 2016 at 5:31 AM, Matteo Collina notifications@github.com
. *.* .
|
In this PR the following are executed in order:
The retain messages are loaded asynchronously, so there might be some messages that slips in. We need to start sending messages after SUBACK, and deferring any packets matching that subscription till after we have sent all the retained messages. |
Makes sense. bb On Thu, Jun 9, 2016 at 11:15 AM, Matteo Collina notifications@github.com
. *.* .
|
Fixes #52
@bblumberg please verify