reta commented on code in PR #3701:
URL: https://github.com/apache/cxf/pull/3701#discussion_r4530639202


##########
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:
   Looked closely, I think we could keep `exception` out for this change, 
thanks @ffang 



-- 
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