-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Milestone
Description
Hi
I found out that the BodyDefferingAsyncHandler does not play well with the default retries on GET.
If the connection is closed after the caller thread has started consuming the body, the default behavior of the client is to retry the request, pouring the new body into the same output stream as the first request.
Unless I'm mistaken BodyDefferingAsyncHandler should overwrite 'onRetry' and throw an exception there, unless there's a cleaner way to do this.
The current workaround is to configure the client with 0 retries, but as it is global, that's not a good solution.