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 (apple#1653)
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 a maximum recursion depth of 1. 2. Less risk of encountering issue apple#1652.
- Loading branch information
1 parent
ecd9ff3
commit 1c19c0a
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