eclipse / paho.mqtt.m2mqtt

Eclipse Public License 1.0
512 stars 303 forks source link

100%CPU Usage when trying to connect an unencrypted client to an encrypted server #135

Open Daniel900 opened 2 years ago

Daniel900 commented 2 years ago

If I'm using the MqttClient with no encryption and try to connect to a server with no encryption it works fine. But due to development I tried to connect with the client with no encryption configured to a Mosquitto Server with encryption enabled. Instead of getting an error the CPU usage got to 100% and the program wasn't responding anymore.

To Reproduce

Steps to reproduce the behavior:

  1. Using this version of M2Mqtt '4.3.0'.
  2. Set the MqttClient to use no encryption
  3. Try to connect to an encrypted mosquitto server

Expected behaviour

The Client throws an error.

Real behaviour

The client runs at 100% CPU usage.

jisotalo commented 1 year ago

See

Use other newer library if possible. These guys wont take any PRs..

Adding this here that someone else would see this