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.
FromNPublisher
: limit recursion depth to 1
Motivation: To mitigate apple#1652 issue, temporary limit the mutual recursion between `onNext` and `request` to a depth of 1. Modifications: - Use the left 4 bits of the `state` to limit recursion depth to 1; - Remove `boundedDepthOfOnNextAndRequestRecursion()` override from `PublisherFrom2TckTest` and `PublisherFrom3TckTest`; Result: 1. `FromNPublisher` has maximum recursion depth of 1. 2. Less risk encountering the issue apple#1652. Signed-off-by: Idel Pivnitskiy <[email protected]>
- Loading branch information
1 parent
6e39ecb
commit 3a73441
Showing
3 changed files
with
39 additions
and
23 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
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