-
Notifications
You must be signed in to change notification settings - Fork 181
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
http-utils: cleanup the BeforeFinallyHttpOperator state #3042
Merged
bryce-anderson
merged 13 commits into
apple:main
from
bryce-anderson:bl_anderson/MoreBeforeFinally
Aug 22, 2024
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
b2a7611
Add some comments
bryce-anderson ff57352
This might be a start, but still work to do
bryce-anderson 5efa94b
Simplify the application of ResponseCompletionSubscriber
bryce-anderson e87c648
Go back to int state, for readability
bryce-anderson 41066e2
Fix some tests and figure out why another is failing
bryce-anderson 6418b6c
Make CancelledSubscriber, but I will probably remove it later
bryce-anderson d857ca0
Fix tests and cleanup
bryce-anderson 282f9e1
Merge remote-tracking branch 'origin/main' into bl_anderson/MoreBefor…
bryce-anderson 2522409
Fix doc string
bryce-anderson 4346a31
No longer need OnceTerminalSignalConsumer
bryce-anderson 4285fa8
Cleanup
bryce-anderson ab4bdb4
Fix style
bryce-anderson 3a0cbe6
Update servicetalk-http-utils/src/main/java/io/servicetalk/http/utils…
bryce-anderson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We satisfy the callback requirements but we don't proactively drain the message body. Doing so will be hairy. I personally think it should be up to the receiver of the message to properly dispose of it if they no longer want it, or pass it along until something in the pipeline cares.
Opinions welcome.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you think we may need to drain message body here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I certainly wasn't clear. I mean we win the race to send it but what happens if we receive a losing cancel call before the response body has been subscribed to: should we try to drain the message body at that point or is it out of our hands? I think the latter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's out of our hands. For now, we will rely on operators that generate cancel, like the timeout filter, to clean it up