aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorS.Nishio <nishio@densan-labs.net>2016-02-21 20:43:19 +0900
committerS.Nishio <nishio@densan-labs.net>2016-02-21 20:43:19 +0900
commitdda186110cf52e96b16a1974cfb888b1dee1b762 (patch)
tree4c92d147161cada0edc6db514428c7615846b33f /src
parent4552bd27c403918288a96292ac6d1ffa7cae1955 (diff)
parentca2ab6183b8d53caa480572fdadfefcc8008a039 (diff)
downloadbbprb-dda186110cf52e96b16a1974cfb888b1dee1b762.tar.gz
Merge pull request #76 from maxvodo/master
Properly close connections to avoid TCP CLOSE_WAIT
Diffstat (limited to 'src')
-rw-r--r--src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/bitbucket/ApiClient.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/bitbucket/ApiClient.java b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/bitbucket/ApiClient.java
index 19bff34..c8dfeb2 100644
--- a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/bitbucket/ApiClient.java
+++ b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/bitbucket/ApiClient.java
@@ -244,6 +244,8 @@ public class ApiClient {
} catch (IOException e) {
logger.log(Level.WARNING, "Failed to send request.", e);
e.printStackTrace();
+ } finally {
+ req.releaseConnection();
}
return null;
}