-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Motivation: When `KeepAliveManager` closes a channel due to some error, it force closes the `Channel` but does not report an error to `ConnectionObserver`. Modifications: - `KeepAliveManager` uses `ChannelCloseUtils` to make errors visible for `ConnectionObserver`; - When timeout fires, create `TimeoutException` that will be reported to `ConnectionObserver`; - If it doesn't receive `PING(ACK)` during graceful closure process, force close the channel regardless of the number of active streams; - Enhance `KeepAliveManagerTest` to verify new behavior; Result: All errors observed by `KeepAliveManager` are visible to `ConnectionObserver`.
- Loading branch information
1 parent
1071da9
commit 4e1464d
Showing
2 changed files
with
98 additions
and
25 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