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

Client library loop high CPU load during SSL connect in 2.0.15 #2794

Closed
jsopenrb opened this issue Apr 26, 2023 · 2 comments
Closed

Client library loop high CPU load during SSL connect in 2.0.15 #2794

jsopenrb opened this issue Apr 26, 2023 · 2 comments

Comments

@jsopenrb
Copy link

The loop is constantly calling SSL_write until a connection is established. High CPU load can only be observed if the broker is slow to respond. Usually the initial connection is very fast so the extra load is negligible.
It happens after this change: e979a46

@ralight
Copy link
Contributor

ralight commented Apr 27, 2023

Thank you, that's a good spot.

@jsopenrb
Copy link
Author

Have you seen my comment on the commit? mosquitto_want_write does not have a check for SSL_is_init_finished while mosquitto_loop does.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants