stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ud...@apache.org
Subject [1/2] git commit: http client release
Date Wed, 01 Oct 2014 12:36:31 GMT
Repository: stratos
Updated Branches:
  refs/heads/4.0.0-grouping a0e36dbe8 -> 07eeac30a


http client release


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

Branch: refs/heads/4.0.0-grouping
Commit: d488711472a062c2c4434558b441fc472d60a7b5
Parents: a0e36db
Author: Udara Liyanage <udara@wso2.com>
Authored: Wed Oct 1 17:02:16 2014 +0530
Committer: Udara Liyanage <udara@wso2.com>
Committed: Wed Oct 1 17:02:16 2014 +0530

----------------------------------------------------------------------
 .../apache/stratos/metadata/client/rest/DefaultRestClient.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/d4887114/components/org.apache.stratos.metadata.client/src/main/java/org/apache/stratos/metadata/client/rest/DefaultRestClient.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.metadata.client/src/main/java/org/apache/stratos/metadata/client/rest/DefaultRestClient.java
b/components/org.apache.stratos.metadata.client/src/main/java/org/apache/stratos/metadata/client/rest/DefaultRestClient.java
index 55e0360..64e2567 100644
--- a/components/org.apache.stratos.metadata.client/src/main/java/org/apache/stratos/metadata/client/rest/DefaultRestClient.java
+++ b/components/org.apache.stratos.metadata.client/src/main/java/org/apache/stratos/metadata/client/rest/DefaultRestClient.java
@@ -120,6 +120,8 @@ public class DefaultRestClient implements RestClient {
             String errorMsg = "Error while executing GET statement";
             log.error(errorMsg, e);
             throw new RestClientException(errorMsg, e);
+        }finally {
+            get.releaseConnection();
         }
     }
 
@@ -134,6 +136,8 @@ public class DefaultRestClient implements RestClient {
             String errorMsg = "Error while executing DELETE statement";
             log.error(errorMsg, e);
             throw new RestClientException(errorMsg, e);
+        }finally {
+            delete.releaseConnection();
         }
     }
 


Mime
View raw message