puppetlabs / clj-http-client

HTTP client library wrapping Apache HttpAsyncClient
Apache License 2.0
15 stars 30 forks source link

(TK-88) Removed errant build call from JavaClient's createClient() #18

Closed camlow325 closed 10 years ago

camlow325 commented 10 years ago

This commit removes an unnecessary build() method call made on the HttpAsyncClientBuilder in JavaClient's createClient() method. Previously, the presence of this call would cause an extra CloseableHttpAsyncClient object to be created. Since close() was never called on the extra client object, native file descriptor resources were never freed even after the object fell out of scope.