Skip to content
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

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

Open
Daniel900 opened this issue Apr 26, 2022 · 1 comment

Comments

@Daniel900
Copy link

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
Copy link

jisotalo commented Sep 23, 2022

See

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

Adding this here that someone else would see this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants