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.
Motivation: apple#2297 indicates that `ResponseCancelTest` sometimes fails. It happens because we incorrectly request signals from `delayedClientTermination` queue. After cancel we may or may not see a terminal event. In rare cases, `StacklessClosedChannelException` is propagated to the subscriber after cancel. The next request does not assume that there is a pending `ClientTerminationSignal` in the queue and considers this exception as failure for a new request. Modifications: - Introduce a `requestId` to associate `ClientTerminationSignal` with a proper request; - Discard signals for prior requests inside `resume` logic; - Wrap `signal.err` with `AssertionError` to preserve a caller stack trace; Result: Fixes apple#2297.
- Loading branch information
1 parent
d35e46b
commit 5759aa5
Showing
1 changed file
with
53 additions
and
22 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