Skip to content

Refactor SocketClient connection handling and error logging#1169

Open
elupus wants to merge 1 commit intohome-assistant-libs:masterfrom
elupus:reconn
Open

Refactor SocketClient connection handling and error logging#1169
elupus wants to merge 1 commit intohome-assistant-libs:masterfrom
elupus:reconn

Conversation

@elupus
Copy link
Copy Markdown
Collaborator

@elupus elupus commented Feb 25, 2026

Avoid nested partial exception capture and let exception propagate to where we can make an informed choices. We don't need to catch unexpected errors we can't do anything deep in nested functions. It's better for them to propagate out to where we can do something about them.

Also ensure we don't hammer hosts if we fail with unexpected exception wait for 5 seconds before attempting to reconnect.

Avoid nested partial exception capture and let exception propagate
to where we can make an informed choices. We don't need to catch unexpected errors we can't do anything deep in nested functions. It's better for them
to propagate out to where we can do something about them.
@elupus elupus marked this pull request as ready for review February 25, 2026 16:52
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