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


##########
rt/transports/http/src/main/java/org/apache/cxf/transport/http/HttpClientHTTPConduit.java:
##########
@@ -243,13 +243,18 @@ private boolean isSslTargetDifferent(URI lastURL, URI 
url) {
                 || !lastURL.getHost().equals(url.getHost())
                 || lastURL.getPort() != url.getPort();
     }
-    
+
     @Override
     public void close(Message msg) throws IOException {
+        OutputStream os = msg.getContent(OutputStream.class);
+        // Java 21 may hang on close, we flush stream to help close them out.
+        if (os != null && 
AutoCloseable.class.isAssignableFrom(HttpClient.class)) {

Review Comment:
   NettyHttpConduit  should not be impacted, right?



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