forked from apple/servicetalk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SingleConcatWithPublisher
: limit recursion depth to 1 (apple#1654)
Motivation: To mitigate apple#1652 issue, temporary limit the mutual recursion between `onNext` and `request` to a depth of 1 for `ConcatDeferNextSubscriber`. Modifications: - Introduce additional `SINGLE_DELIVERING` state to understand if the `request` was invoked while we deliver result of the `Single`; - Remove `boundedDepthOfOnNextAndRequestRecursion()` override from `SingleConcatWithPublisherDeferSubscribeTckTest`; Result: 1. `SingleConcatWithPublisher` has a maximum recursion depth of 1. 2. Less risk of encountering issue apple#1652.
- Loading branch information
1 parent
ea2f56c
commit ecd9ff3
Showing
2 changed files
with
26 additions
and
11 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