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

Fix high CPU usage in coordinator by properly handling closed connections #155

Merged
merged 2 commits into from
Dec 7, 2022

Conversation

phil-opp
Copy link
Collaborator

@phil-opp phil-opp commented Dec 7, 2022

We forgot to handle closed control connections in the handle_requests loop. So instead of breaking out of that loop, we continued polling the connection for new messages again and again.

Fixes #154

…ions

We forgot to handle closed control connections in the `handle_requests` loop. So instead of breaking out of that loop, we continued polling the connection for new messages again and again.
@phil-opp phil-opp merged commit 182206b into main Dec 7, 2022
@phil-opp phil-opp deleted the fix-cpu-usage branch December 7, 2022 14:45
@haixuanTao
Copy link
Collaborator

I've tried again on a fresh install, and it fixed everything!
Thanks @philipp

@haixuanTao haixuanTao mentioned this pull request Dec 19, 2022
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

Successfully merging this pull request may close these issues.

dora-coordinator has very high CPU usage
2 participants