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
Message queuing using --disable-clean-session option not working in mosquitto_sub #2134
Milestone
Comments
Thanks, that's a handy script. This is straightforward to fix for MQTT v5 in principle using the |
Oh, so I am not doing anything wrong and it's indeed a bug? That's a relief, I was going crazy over it for 2 hours, thanks. |
ralight
added a commit
that referenced
this issue
Mar 14, 2021
This is for mosquitto_sub and mosquitto_rr, to avoid potentially lost messages. Closes #2134. Thanks to Frantisek Fuka.
ralight
added a commit
that referenced
this issue
Mar 14, 2021
This is for when it takes over an old session. Closes #2134. Thanks to Frantisek Fuka.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have created this minimal Linux script to show the problem:
I am attempting to queue 10 messages and then receive them separately, one after another, using command line tools. The first message is received and displayed but the remaining 9 are never displayed.
(Mosquitto server runs with default configuration)
Complete script output follows. Look especially at the debug output after "Attempting to receive B". 9 messages seem to be received all at once and never printed:
The text was updated successfully, but these errors were encountered: