forked from line/armeria
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the cleanup of streaming responses (line#1119)
Motivation: A successfully sent response can be logged with AbortedStreamException or ClosedChannelException due to race conditions. Modifications: - Make HttpResponseSubscriber handle AbortedStreamException and ClosedChannelException better so that they are not logged unnecessarily - Make HttpServerHandler clean up unfinished HTTP/1 responses a little bit later so that they are not aborted too early. - Miscellaneous: - Fix a bug in DeferredStreamMessage where NeverInvokedSubscriber is invoked, which happens when a DeferredStreamMessage is delegated to another DeferredStreamMessage. Result: - Much less chance of redundant AbortedStreamException or ClosedChannelException
- Loading branch information
Showing
6 changed files
with
123 additions
and
51 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
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