forked from line/armeria
-
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.
Handle exceptions from Subscribers (line#2553)
Motivation: An exception raised by a `Subscriber`'s `onNext()` or other handler methods can cause an unexpected connection drop. We should handle it. Modifications: - Catch the exception thrown by `onSubscribe()` and `onNext()` from `Subscriber`s. - Aabort the stream or call `onError` with the cause. - Catch the exception thrown by `onComplete()` and `onError()`, and log it. - Fork `CompositeException` from RxJava. Result: - Close line#2475 - The connection is not closed by unhandled exceptions from `Subscriber`s anymore.
- Loading branch information
Showing
19 changed files
with
1,078 additions
and
142 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
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
Oops, something went wrong.