-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle HTTP/1.1 response cancelation same way on all levels
Motivation: When response cancel is generated at client level, `LoadBalancedStreamingHttpClient` has a logic in place to close the connection to mitigate a race between connection availability and closure. However, this logic is skipped if cancel is generated from connection-level filter. Modifications: - Move connection closure from `LoadBalancedStreamingHttpClient` to `PipelinedStreamingHttpConnection`; - Adjust tests and comments; Result: HTTP/1.1 connection is always closed in case of cancellation. We do that from the caller thread to proactively set `onClosing` state.
- Loading branch information
1 parent
8cc2f32
commit efb153f
Showing
4 changed files
with
52 additions
and
34 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