reta commented on code in PR #3701:
URL: https://github.com/apache/cxf/pull/3701#discussion_r4528090329
##########
rt/transports/http/src/main/java/org/apache/cxf/transport/http/HttpClientHTTPConduit.java:
##########
@@ -1161,22 +1161,21 @@ public CompletableFuture<HttpResponse<InputStream>>
run() throws IOException {
future = cl.sendAsync(request, handler);
}
future.exceptionally(ex -> {
- // Record the failure on the message so the close() invoked
below
- // does not treat this as an un-sent request and resend it: the
- // shared WrappedOutputStream#close() already skips
- // handleHeadersTrustCaching() once outMessage carries an
Exception
- // (CXF-9250).
- outMessage.setContent(Exception.class,
- ex instanceof Exception ? (Exception) ex : new
IOException(ex));
- if (pout != null) {
- synchronized (pout) {
- pout.notifyAll();
+ // Only release a writer waiting for the connection or blocked
on the body. The
Review Comment:
@ffang I think we lost something along the way:
- the `ex` will be lost post `future.exceptionally`, right?
- we also have `exception` property that is not set anywhere anymore
--
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]