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

DM-36148: AstelcoDIMM: improve handling of invalid values #27

Merged
merged 7 commits into from Sep 26, 2022

Conversation

r-owen
Copy link
Collaborator

@r-owen r-owen commented Sep 26, 2022

from a GET command.

@r-owen r-owen force-pushed the tickets/DM-36148 branch 4 times, most recently from 391b714 to fe0e35e Compare September 26, 2022 20:49
@r-owen r-owen changed the title AstelcoDIMM: improve handling of invalid values DM-36148: AstelcoDIMM: improve handling of invalid values Sep 26, 2022
instead of debug, and tweak the text.
* ``status_loop`` was running at full speed, instead of waiting
  between status requests, which needlessly stressed the DIMM.
* ``running_commands`` was not being purged of command that finished.
  Coupled with the previous problem, this was a significant memory leak.
* Make connect_task always be a task (never None).
* Use a named constant for the status interval,
  instead of a hard-coded value.
* Only try to send the DISCONNECT command if connected.
* Cancel connect_task in the stop method.
  One could also cancel it in the disconnect method,
  but then `disconnect` will need a flag to avoid that
  so it's safe to call from the connect method.
Copy link
Member

@tribeiro tribeiro left a comment

Choose a reason for hiding this comment

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

Looks good!

@r-owen r-owen merged commit a8329ec into develop Sep 26, 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.

None yet

2 participants