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

Shutdown consumer streams when the underlying channel closes #102

Merged

Conversation

achilleasa
Copy link
Owner

This PR ensures that if a channel closes, either because the channel's close() method was invoked or because a channel-closing exception occurred, any pending in-flight operations as well as any active consumers are properly terminated.

Prior to this change, the implementation would just terminate in-flight operations in case of a channel-closing exception but leave the existing consumer streams open.

Fixes #99

This commit ensures that if a channel closes, either because the
channel's close() method was invoked or because a channel-closing
exception occurred, any pending in-flight operations as well as any
active consumers are properly terminated.
@achilleasa achilleasa force-pushed the close-consumer-streams-when-handling-channel-exceptions branch from af8f684 to e66a146 Compare August 11, 2023 20:22
@coveralls
Copy link

Coverage Status

coverage: 93.043% (-0.08%) from 93.123% when pulling e66a146 on close-consumer-streams-when-handling-channel-exceptions into 398840c on master.

@achilleasa achilleasa merged commit 4e2a811 into master Aug 11, 2023
@achilleasa achilleasa deleted the close-consumer-streams-when-handling-channel-exceptions branch August 11, 2023 20:25
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.

Channel Exceptions, Channel Closes, etc don't inform Consumers
2 participants