cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: [CXF-5865] Do not close Response if WebClient.close is called as a code may be holding a reference to a non consumed Response
Date Wed, 09 Jul 2014 11:01:17 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 9fc73f516 -> 669e2f061


[CXF-5865] Do not close Response if WebClient.close is called as a code may be holding a reference
to a non consumed Response


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/669e2f06
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/669e2f06
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/669e2f06

Branch: refs/heads/master
Commit: 669e2f061fc0877bb9d5fad981850538f6de421f
Parents: 9fc73f5
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Wed Jul 9 12:01:00 2014 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Wed Jul 9 12:01:00 2014 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/jaxrs/client/LocalClientState.java   | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/669e2f06/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/LocalClientState.java
----------------------------------------------------------------------
diff --git a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/LocalClientState.java
b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/LocalClientState.java
index c764c63..217244f 100644
--- a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/LocalClientState.java
+++ b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/LocalClientState.java
@@ -122,9 +122,6 @@ public class LocalClientState implements ClientState {
     
     public void reset() {
         requestHeaders.clear();
-        if (response != null) {
-            response.close();
-        }
         response = null;
         currentBuilder = new UriBuilderImpl().uri(baseURI);
         templates = null;


Mime
View raw message