-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http-utils: cleanup the BeforeFinallyHttpOperator state (#3042)
Motivation: The BeforeFinallyHttpOperator has a few shortcomings - It doesn't honor the contract of calling the callbacks only once in the case of multiple subscribes. - It won't honor a cancel if in the PROCESSING_PAYLOAD state, which has some weird callback lifetime questions. Modifications: - If we receive a cancellation on the Single before the message body has been subscribed, that counts as a cancel. Once the message body is subscribed ownership of the callbacks are fully transferred to that subscription. - Only the first body subscribe gets ownership of the callbacks. Co-authored-by: Idel Pivnitskiy <idel.pivnitskiy@apple.com>
- Loading branch information
1 parent
44a5b80
commit 372f108
Showing
2 changed files
with
89 additions
and
37 deletions.
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