Httpclient-2194 async retries not including body (#343)

This commit is contained in:
JasonMathison 2022-01-05 15:54:46 -05:00 committed by Oleg Kalnichevski
parent e6ad081b3c
commit dd0bbda070
1 changed files with 3 additions and 0 deletions

View File

@ -128,6 +128,9 @@ public final class AsyncHttpRequestRetryExec implements AsyncExecChainHandler {
public void completed() {
if (state.retrying) {
scope.execCount.incrementAndGet();
if (entityProducer != null) {
entityProducer.releaseResources();
}
scope.scheduler.scheduleExecution(request, entityProducer, scope, asyncExecCallback, state.delay);
} else {
asyncExecCallback.completed();