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 exceptions in client._task_network_consumer #281

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

willholley
Copy link

@willholley willholley commented Oct 16, 2024

When exceptions bubble up to _task_network_consumer, log them and close the connection.

This prevents the network consumer becoming unresponsive in the face of unhandled exceptions, which then surface as TimeoutErrors to GivTCP processes which are waiting on responses from the inverter.

This is complementary to #280 - this PR on its own addresses the generic problem of unhandled exceptions killing the network consumer, if it's undesirable to merge #280.

@willholley willholley force-pushed the 273-timeouts-2 branch 2 times, most recently from f19b817 to 9a59b6a Compare October 16, 2024 21:07
When exceptions bubble up to _task_network_consumer, log them
and close the connection.

This prevents the network consumer becoming unresponsive
in the face of unhandled exceptions, which then surface as
TimeoutErrors to GivTCP processes which are waiting on
responses from the inverter.
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