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

Improve connection close and error handling #107

Merged
merged 3 commits into from
Jan 2, 2025

Conversation

NeonDaniel
Copy link
Member

@NeonDaniel NeonDaniel commented Jan 2, 2025

Description

Update SelectConsumerThread to pass exceptions to self.error_func to match BlockingConsumerThread
Handle channel/connection closed exceptions explicitly in SelectConsumerThread
Update BlockingConsumerThread to ensure connection is closed exactly once
Update tests to check for expected error callbacks

Issues

Alternate solution to #106

Other Notes

… to match `BlockingConsumerThread`

Handle channel/connection closed exceptions explicitly in `SelectConsumerThread`
@NeonDaniel NeonDaniel requested a review from NeonKirill January 2, 2025 19:43
@NeonDaniel NeonDaniel changed the title SelectConsumer call error_func to match BlockingConsumer Improve connection close and error handling Jan 2, 2025
@NeonDaniel NeonDaniel marked this pull request as ready for review January 2, 2025 20:51
@NeonDaniel NeonDaniel merged commit 13604c7 into dev Jan 2, 2025
8 checks passed
@NeonDaniel NeonDaniel deleted the FEAT_SelectConsumerHandleExceptions branch January 2, 2025 21:15
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.

2 participants