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
Mosquitto stops publishing when using persistent connections with QoS2 #1322
Comments
Ok, I found a way to reproduce this (after 4 hours of debugging and finding a minimum example):
Basically, when you use persistent connections Mosquitto version: 1.6.3 |
@ralight It would be very nice if you could address this in 1.6.4 as it is a breaking bug for our application. Our workaround currently is to have some client listen to topic By the way, this is a proper "Heisenbug": It only happens when you are not trying to figure out what happens (no subscriber present)... |
Fix incoming messages not being removed for a client if the topic being published to does not have any subscribers. Closes #1322. Thanks to Yannic Schröder.
Thank you for the very straightforward path to follow and the effort to create it! It took a bit of figuring out, but I believe this is now fixed in the I spent a year in Braunschweig a fair few years ago, it's a nice place. |
Fix incoming messages not being removed for a client if the topic being published to does not have any subscribers. Closes eclipse#1322. Thanks to Yannic Schröder.
Thanks for the fix @ralight! We use Mosquitto to relay messages between devices in our timekeeping system for Formula Student Germany. We had version 1.6.4 running this year and it worked like a charm! From next year on our main timekeeping system will completely work with MQTT. We send data from our RFID readers and light barriers to the main system via MQTT, control attached 7 segment displays via MQTT, have a operator interface in a browser that runs on MQTT via websockets and have a bridge to a second Mosquitto in the Internet that is used for live timing for the bigger audience (also overlay for a Youtube livestream). And all of this is powered by a central Mosquitto instance :-) Here you can see a bit of the action (and some timekeeping equipment if you watch closely): https://www.youtube.com/watch?v=2GbuATnjenI Thank you for the great project! I like Braunschweig as well, I am here for 11 years now ;-) |
Fix incoming messages not being removed for a client if the topic being published to does not have any subscribers. Closes #1322. Thanks to Yannic Schröder.
Ok, I have something very hard to reproduce and I do not know how to reproduce it reliably yet:
Sometimes, when a client publishes a retained message to a topic that already has a retained message the new message is published but the old retained message stays retained. Example:
I do not know exactly yet what is going on here, it dos not always happen in my setup. I was not able to reproduce it with a minimal example.
B is a persistent client with LWT set.
In my real test the message sent by B is rather large (some kilobytes)
All messages are published and subscribed with QoS=2.
Everything in running on localhost.
Mosquitto is v1.6.3 on Arch Linux.
To me it looks like some race condition that I cannot trigger reliably.
The text was updated successfully, but these errors were encountered: