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 clients 2.0.2 fails to communicate with Mosquitto broker 1.6.12 #1957
Comments
Thanks for the report. There are two things to address: First mosquitto_sub not responding to ctrl-c. This occurred because it was assuming a successful connection would be made, and then try to disconnect gracefully. If the connection wasn't made, as in this case, it couldn't disconnect gracefully but wouldn't quit any other way. Second, the client not connecting. This is because the behaviour of the mosquitto clients has changed if you use port 8883. Port 8883 is reserved for TLS encrypted MQTT connections, and the clients will now load the system CA certificates and use TLS mode if you use port 8883 and don't specify your own certificates. So I'd suggest either changing to use port 1883, or adding TLS encryption to your listener. |
Thank you for the update, I was using 8883 port because I will use TLS encryption later in the project. I will come back to 1883 for the development phase. |
This occured if a successful connection was not made. Closes eclipse#1957. Thanks to Peoh.
Hello,
We work with mosquitto since 2 years, and it works like a charm. We update to last versions as soon as possible to fix the possible issues, but this time I think I encountered one :)
Setup to reproduce the error:
This is what I tested
This is the what I got from the broker (1.6.12)
And this is what I got from mosquitto_sub on the x64 (2.0.2)
mosquitto_sub is unresponsive and I have to kill it with a SIGKILL (or wait some time).
The configuration on the broker is the following (really minimal):
I would like to note that the mosquitto_sub worked with a previous version on my x64 machine. After update to 2.0.2 it does not work.
If you want more tests or details, feel free to ask.
The text was updated successfully, but these errors were encountered: