MQTTv5 Publish Returns "No Matching Subscribers" Even When Subscribers are Subscribed on 2.0.19 #3128
Labels
Component: mosquitto-broker
Status: Completed
Nothing further to be done with this issue, it can be closed by the requestor or committer.
Type: Bug
Milestone
I'm running Mosquitto via Docker on Ubuntu 22.04 using the eclipse-mosquitto image tagged 2.0.19-openssl. Our software pays attention to see if clients are subscribed when doing a PUBLISH, and doesn't PUBLISH additional extra information if nobody is subscribed and listening. Starting with 2.0.19, all PUBLISH's via MQTTv5 are returning 16 (AKA 0x10), which indicates nobody is subscribed (even when other clients are).
This does not happen on the 2.0.18 image and seems to have started for me because I was using "latest".
I have attached a zip file with a Python script (and requirements.txt) and a mosquitto.conf file that together will run the test to show the problem. This does use docker (via Python Docker SDK) and outputs the following. Notice how on 2.0.18 the Published message callback returns a 0 and on 2.0.19 it's a 16 (No matching subscribers). The output also captures all of mosquitto's logging which also shows the same thing via "rc 0" and "rc 16".
test.zip
The text was updated successfully, but these errors were encountered: