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

Handle the out of Memory error by counting subsequent timeouts - keep alive - Implement ConnectionError #22

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

jakob1911
Copy link

@jakob1911 jakob1911 commented Jun 27, 2024

Hello OnFreund,

i tested a few things regarding the "out of Memory error" home-assistant/core#119138 over the last weeks, just right before you updated your repository -- in fact i came a bit late with this now :)

I don´t know if my changes would fit your standard. But in fact it solves the problem with out of memory in my case compleatly.
(i´m using pyrisco with HomeAssistant in local) !

  • Created parameter "max_timeout_keep_alive_subseq" in pyrisco
    --> If a "Timeout CLOCK" happens 3 times subseqently, i´m raising an error "ConnectionError"
    In my test together with HomeAssistant Integration i checking for the error the same way you do for "ConnectionResetError" (init_.py) and starting a reload of the Integration when "ConnectionError" is raised by pyrisco.

I would be happy if you can take parts of my changes for everyone´s needs.

Best regards

Jakob

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.

1 participant