Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Mosquitto stops publishing when using persistent connections with QoS2 #1322
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.
To me it looks like some race condition that I cannot trigger reliably.
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)...
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.