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

Issue #35: High CPU Usage Due to Infinite Loop in IPMI Core library Connection.run() #36

Conversation

NassimBtk
Copy link
Member

  • Implemented the ability to override the pingPeriod, allowing it to be set to 0 to disable keep-alive messages.

  • Added a delay (1 second) between retries to avoid tight looping and reduce CPU usage.

  • Included a check for thread interruption to allow graceful shutdown.

  • Modified the runner code to ensure that closable instances are properly closed.

* Implemented the ability to override the `pingPeriod`, allowing it to
be set to `0` to disable keep-alive messages.

* Added a delay (1 second) between retries to avoid tight looping and
reduce CPU usage.

* Included a check for thread interruption to allow graceful shutdown.

* Modified the runner code to ensure that closable instances are
properly closed.
NassimBtk added 3 commits June 7, 2024 11:41
…-connection-classs-run-method' of https://github.com/sentrysoftware/ipmi.git into feature/issue-35-high-cpu-usage-due-to-infinite-loop-in-connection-classs-run-method
Copy link
Member

@bertysentry bertysentry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@NassimBtk NassimBtk merged commit 47261d4 into main Jun 7, 2024
1 check passed
@NassimBtk NassimBtk deleted the feature/issue-35-high-cpu-usage-due-to-infinite-loop-in-connection-classs-run-method branch June 7, 2024 10:52
@NassimBtk NassimBtk added the bug Something isn't working label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

High CPU Usage Due to Infinite Loop in Connection Class's run() Method
2 participants