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

Fix cleanResponses must handle cleaning up cancelled future #1218

Merged
merged 2 commits into from
Aug 23, 2024

Conversation

MauriceVanVeen
Copy link
Member

If a future would be cancelled outside of cleanResponses, calling future.get() would throw a CancellationException.

This exception was not caught, breaking future cleanup.

If a future would be cancelled outside of `cleanResponses`, calling `future.get()` would throw a `CancellationException`.

This exception was not caught, breaking future cleanup.

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
@MauriceVanVeen MauriceVanVeen requested a review from scottf August 23, 2024 15:12
Copy link
Contributor

@scottf scottf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
@scottf scottf merged commit 3198cba into main Aug 23, 2024
4 checks passed
@MauriceVanVeen MauriceVanVeen deleted the fix/cancelled-future-throws-while-cleaning-responses branch August 23, 2024 20:03
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