reta commented on code in PR #3514:
URL: https://github.com/apache/cxf/pull/3514#discussion_r4124508509
##########
rt/transports/http/src/main/java/org/apache/cxf/transport/http/HttpClientHTTPConduit.java:
##########
@@ -1064,6 +1074,9 @@ public CompletableFuture<HttpResponse<InputStream>> run()
throws IOException {
future = cl.sendAsync(request, handler);
}
future.exceptionally(ex -> {
+ // Record the failure so the re-entrant close() call below
(see the
Review Comment:
Thanks @ffang , I am wondering if fix belong to close() itself, we do check
for exception specifically, should be make sure it is set?
```
boolean exceptionSet = outMessage.getContent(Exception.class) != null;
if (!written && !exceptionSet) {
handleHeadersTrustCaching();
}
```
--
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]