eclipse / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
8.93k stars 2.37k forks source link

mosquitto_sub and mosquitto_pub hang if -cafile is accidently given on a non-ssl connect #1743

Open pmous opened 4 years ago

pmous commented 4 years ago

The ubuntu version 1.4.15 (ubuntu 18.04) gives an error (Unable to connect (A TLS error occurred.)), but the new version 1.6.10 just hangs. Since no feedback is given, it took me a long time to figure out the -cafile option was the problem.

ralight commented 4 years ago

That's not the behaviour that I see, it gives the same error in both cases. Are you sure there isn't an old library version around that the 1.6.10 client is using by mistake?

yusharth commented 1 year ago

Is there any temporary fix for that? because I am having the same issue. My terminal froze on typing the command: sudo docker exec -it mosquitto-broker mosquitto_sub -t 'hello/topic' My version is Ubuntu and I am using it along with Docker.