eclipse/paho.mqtt.m2mqtt

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

Daniel900 opened this issue · 1 comments

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.

See

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

Adding this here that someone else would see this