100%CPU Usage when trying to connect an unencrypted client to an encrypted server
Daniel900 opened this issue · 1 comments
Daniel900 commented
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:
- Using this version of M2Mqtt '4.3.0'.
- Set the MqttClient to use no encryption
- Try to connect to an encrypted mosquitto server
Expected behaviour
The Client throws an error.
Real behaviour
The client runs at 100% CPU usage.