stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ud...@apache.org
Subject [4/4] git commit: release the http method once executed
Date Wed, 01 Oct 2014 09:35:41 GMT
release the http method once executed


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

Branch: refs/heads/4.0.0-grouping
Commit: a0e36dbe82893c502ea6f8867309d096ae74a6de
Parents: ec68c2d
Author: Udara Liyanage <udara@wso2.com>
Authored: Wed Oct 1 15:01:55 2014 +0530
Committer: Udara Liyanage <udara@wso2.com>
Committed: Wed Oct 1 15:01:55 2014 +0530

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


http://git-wip-us.apache.org/repos/asf/stratos/blob/a0e36dbe/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 cb12b8d..55e0360 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
@@ -80,6 +80,8 @@ public class DefaultRestClient implements RestClient {
             String errorMsg = "Error while executing POST statement";
             log.error(errorMsg, e);
             throw new RestClientException(errorMsg, e);
+        }finally {
+            post.releaseConnection();
         }
     }
 


Mime
View raw message