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


##########
rt/transports/http/src/main/java/org/apache/cxf/transport/http/HttpClientHTTPConduit.java:
##########
@@ -289,12 +289,22 @@ public void close(Message msg) throws IOException {
      * Close the conduit
      */
     public void close() {
-        if (clientRef != null) {
-            clientRef.release();
+        // release each reference only once, even if the conduit is closed 
concurrently
+        final RefCount<HttpClient> ref;
+        initializationLock.lock();

Review Comment:
   Thanks @ffang , I think this is good improvement, thank you



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