{"action":"created","issue":{"url":"https://api.github.com/repos/amihaiemil/docker-java-api/issues/44","repository_url":"https://api.github.com/repos/amihaiemil/docker-java-api","labels_url":"https://api.github.com/repos/amihaiemil/docker-java-api/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/amihaiemil/docker-java-api/issues/44/comments","events_url":"https://api.github.com/repos/amihaiemil/docker-java-api/issues/44/events","html_url":"https://github.com/amihaiemil/docker-java-api/issues/44","id":304908141,"number":44,"title":"ISE: Connection is still allocated","user":{"login":"amihaiemil","id":6305156,"avatar_url":"https://avatars0.githubusercontent.com/u/6305156?v=4","gravatar_id":"","url":"https://api.github.com/users/amihaiemil","html_url":"https://github.com/amihaiemil","followers_url":"https://api.github.com/users/amihaiemil/followers","following_url":"https://api.github.com/users/amihaiemil/following{/other_user}","gists_url":"https://api.github.com/users/amihaiemil/gists{/gist_id}","starred_url":"https://api.github.com/users/amihaiemil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amihaiemil/subscriptions","organizations_url":"https://api.github.com/users/amihaiemil/orgs","repos_url":"https://api.github.com/users/amihaiemil/repos","events_url":"https://api.github.com/users/amihaiemil/events{/privacy}","received_events_url":"https://api.github.com/users/amihaiemil/received_events","type":"User","site_admin":false},"labels":[{"id":818940460,"url":"https://api.github.com/repos/amihaiemil/docker-java-api/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-03-13T19:41:25Z","updated_at":"2018-03-14T16:11:21Z","closed_at":null,"author_association":"OWNER","body":"Apparently, using ``BasicHttpClientConnectionManager`` (e.g. inside ``UnixHttpClient``) is not ok since it provides a single connection.\r\n\r\nThis throws the exception:\r\n\r\n```java\r\nfinal Docker docker = new LocalDocker(\r\n    new File(\"/var/run/docker.sock\")\r\n);\r\ndocker.ping();\r\ndocker.ping();\r\n```\r\n\r\nBecuase the connection is still allocated from the first call. We should either close the connection after each call somehow (not always wanted, of course), or maybe use [PoolingClientConnectionManager](http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/conn/PoolingClientConnectionManager.html)?"},"comment":{"url":"https://api.github.com/repos/amihaiemil/docker-java-api/issues/comments/373079564","html_url":"https://github.com/amihaiemil/docker-java-api/issues/44#issuecomment-373079564","issue_url":"https://api.github.com/repos/amihaiemil/docker-java-api/issues/44","id":373079564,"user":{"login":"amihaiemil","id":6305156,"avatar_url":"https://avatars0.githubusercontent.com/u/6305156?v=4","gravatar_id":"","url":"https://api.github.com/users/amihaiemil","html_url":"https://github.com/amihaiemil","followers_url":"https://api.github.com/users/amihaiemil/followers","following_url":"https://api.github.com/users/amihaiemil/following{/other_user}","gists_url":"https://api.github.com/users/amihaiemil/gists{/gist_id}","starred_url":"https://api.github.com/users/amihaiemil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amihaiemil/subscriptions","organizations_url":"https://api.github.com/users/amihaiemil/orgs","repos_url":"https://api.github.com/users/amihaiemil/repos","events_url":"https://api.github.com/users/amihaiemil/events{/privacy}","received_events_url":"https://api.github.com/users/amihaiemil/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T16:11:21Z","updated_at":"2018-03-14T16:11:21Z","author_association":"OWNER","body":"@llorllale This would be a reasearch task, I guess (not sure how much you can figure out in 30min). Of course, it's ok to leave a puzzle with your findings."}}
{"actor":{"display_login":"amihaiemil"}}