seshuthota commented on code in PR #28265:
URL: https://github.com/apache/camel/pull/28265#discussion_r4360841017


##########
components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/AS2ClientConnection.java:
##########
@@ -201,6 +239,10 @@ public HttpResponse send(ClassicHttpRequest request, 
HttpCoreContext httpContext
             endpoint = 
leaseRequest.get(Timeout.ofSeconds(RETRIEVE_CONNECTION_TIMEOUT_SECONDS));
             if (!endpoint.isConnected()) {
                 connectionPoolManager.connect(endpoint, 
TimeValue.ofMilliseconds(connectionTimeoutMilliseconds), httpContext);
+                if (route.isTunnelled()) {
+                    createTunnel(endpoint);
+                    connectionPoolManager.upgrade(endpoint, httpContext);
+                }
             }

Review Comment:
   Filed as [CAMEL-26110](https://issues.apache.org/jira/browse/CAMEL-26110), 
with the `ZERO_MILLISECONDS` release in the `finally` block included in its 
scope as you suggested. I'll open a separate PR for it.
   
   _Claude Code on behalf of @seshuthota_
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to