You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2022/01/05 21:03:57 UTC
[httpcomponents-client] branch master updated: Httpclient-2194 async retries not including body (#343)
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
The following commit(s) were added to refs/heads/master by this push:
new dd0bbda Httpclient-2194 async retries not including body (#343)
dd0bbda is described below
commit dd0bbda07091d1f5532cf998ed91c90751049d33
Author: JasonMathison <Ja...@users.noreply.github.com>
AuthorDate: Wed Jan 5 15:54:46 2022 -0500
Httpclient-2194 async retries not including body (#343)
---
.../apache/hc/client5/http/impl/async/AsyncHttpRequestRetryExec.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/AsyncHttpRequestRetryExec.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/AsyncHttpRequestRetryExec.java
index b12a815..3101ade 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/AsyncHttpRequestRetryExec.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/AsyncHttpRequestRetryExec.java
@@ -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();