You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ud...@apache.org on 2014/10/01 11:35:41 UTC

[4/4] git commit: release the http method once executed

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 <ud...@wso2.com>
Authored: Wed Oct 1 15:01:55 2014 +0530
Committer: Udara Liyanage <ud...@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();
         }
     }