Skip to content

Catch panics in worker thread to keep connection alive#39

Merged
ryanfowler merged 1 commit intomainfrom
fix-worker-thread-panic-resilience
Feb 1, 2026
Merged

Catch panics in worker thread to keep connection alive#39
ryanfowler merged 1 commit intomainfrom
fix-worker-thread-panic-resilience

Conversation

@ryanfowler
Copy link
Owner

Wrap user-provided closure execution in catch_unwind so that a panic does not kill the worker thread and permanently destroy the connection. The panicked operation still returns Error::Closed, but subsequent operations continue to work.

Wrap user-provided closure execution in catch_unwind so that a
panic does not kill the worker thread and permanently destroy the
connection. The panicked operation still returns Error::Closed, but
subsequent operations continue to work.
@ryanfowler ryanfowler merged commit feafded into main Feb 1, 2026
2 checks passed
@ryanfowler ryanfowler deleted the fix-worker-thread-panic-resilience branch February 1, 2026 15:32
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