-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly drain failed responses in http-service-composition example (#…
…3026) Motivation: Existing `ResponseCheckingClientFilter` demonstrated in `servicetalk-http-service-composition` maps the response to an exception, but does not drain the response payload body, leaking the connection. Modifications: - Replace `ResponseCheckingClientFilter` with `RetryingHttpRequesterFilter.Builder.requestMapper` feature; - Rename `BadResponseHandlingServiceFilter` to `HttpResponseExceptionHandlingServiceFilter` and update it to target `HttpResponseException` instead of `BadResponseStatusException`; Result: We don't show users how to leak a connection :)
- Loading branch information
1 parent
b3f8d56
commit 21c0a74
Showing
3 changed files
with
17 additions
and
73 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
65 changes: 0 additions & 65 deletions
65
...n/java/io/servicetalk/examples/http/service/composition/ResponseCheckingClientFilter.java
This file was deleted.
Oops, something went wrong.