-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RetryingHttpRequesterFilter
: drain response before mapping to excep…
…tion (#2391) Motivation: `RetryingHttpRequesterFilter` has `responseMapper` feature that helps users to translate some responses into `HttpResponseException`. However, it doesn't drain the response payload body, which will cause connection leaks. Modifications: - Drain response payload body before returning `HttpResponseException`; - Improve tests to verify connections do not leak; - Use `assertThrows` instead of `fail` in tests; Result: Connections do not leak when `responseMapper` feature is used.
- Loading branch information
1 parent
f927517
commit d9d8e93
Showing
2 changed files
with
42 additions
and
42 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