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:01:10 UTC
[httpcomponents-client] branch 5.1.x 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 5.1.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
The following commit(s) were added to refs/heads/5.1.x by this push:
new 699467f Httpclient-2194 async retries not including body (#343)
699467f is described below
commit 699467f1dd9db555274b2614f39787affb780a7d
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 186a331..032e9b8 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();