{"action":"created","issue":{"url":"https://api.github.com/repos/edgurgel/httpoison/issues/98","labels_url":"https://api.github.com/repos/edgurgel/httpoison/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/edgurgel/httpoison/issues/98/comments","events_url":"https://api.github.com/repos/edgurgel/httpoison/issues/98/events","html_url":"https://github.com/edgurgel/httpoison/issues/98","id":116409520,"number":98,"title":"Should I read body to avoid leaks?","user":{"login":"shankardevy","id":2011812,"avatar_url":"https://avatars.githubusercontent.com/u/2011812?v=3","gravatar_id":"","url":"https://api.github.com/users/shankardevy","html_url":"https://github.com/shankardevy","followers_url":"https://api.github.com/users/shankardevy/followers","following_url":"https://api.github.com/users/shankardevy/following{/other_user}","gists_url":"https://api.github.com/users/shankardevy/gists{/gist_id}","starred_url":"https://api.github.com/users/shankardevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shankardevy/subscriptions","organizations_url":"https://api.github.com/users/shankardevy/orgs","repos_url":"https://api.github.com/users/shankardevy/repos","events_url":"https://api.github.com/users/shankardevy/events{/privacy}","received_events_url":"https://api.github.com/users/shankardevy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-11T19:56:26Z","updated_at":"2015-11-12T06:48:54Z","closed_at":null,"body":"I am using HTTPoison to make several thousand requests/sec. I am recently been plagued with `:system_limit` error and I filed an issue with hackney here: https://github.com/benoitc/hackney/issues/257\r\n\r\nThe author says that I should read the response body of all requests. I am not sure if it has the same implication when I use HTTPoison and not use hackney directly. Can you shed some light?"},"comment":{"url":"https://api.github.com/repos/edgurgel/httpoison/issues/comments/156016890","html_url":"https://github.com/edgurgel/httpoison/issues/98#issuecomment-156016890","issue_url":"https://api.github.com/repos/edgurgel/httpoison/issues/98","id":156016890,"user":{"login":"shankardevy","id":2011812,"avatar_url":"https://avatars.githubusercontent.com/u/2011812?v=3","gravatar_id":"","url":"https://api.github.com/users/shankardevy","html_url":"https://github.com/shankardevy","followers_url":"https://api.github.com/users/shankardevy/followers","following_url":"https://api.github.com/users/shankardevy/following{/other_user}","gists_url":"https://api.github.com/users/shankardevy/gists{/gist_id}","starred_url":"https://api.github.com/users/shankardevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shankardevy/subscriptions","organizations_url":"https://api.github.com/users/shankardevy/orgs","repos_url":"https://api.github.com/users/shankardevy/repos","events_url":"https://api.github.com/users/shankardevy/events{/privacy}","received_events_url":"https://api.github.com/users/shankardevy/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T06:48:54Z","updated_at":"2015-11-12T06:48:54Z","body":"Pls see my updated comment here https://github.com/benoitc/hackney/issues/257#issuecomment-155911078\r\n\r\n\r\n```\r\niex(56)> :erlang.system_info(:port_count)\r\n11\r\niex(57)> HTTPoison.get \"http://www.google.com\"\r\n{:ok,\r\n %HTTPoison.Response{body: \"<HTML><HEAD><meta http-equiv=\\\"content-type\\\" content=\\\"text/html;charset=utf-8\\\">\\n<TITLE>302 Moved</TITLE></HEAD><BODY>\\n<H1>302 Moved</H1>\\nThe document has moved\\n<A HREF=\\\"http://www.google.co.in/?gfe_rd=cr&amp;ei=2jVEVsWwKaTv8weynIGQDA\\\">here</A>.\\r\\n</BODY></HTML>\\r\\n\",\r\n  headers: [{\"Cache-Control\", \"private\"},\r\n   {\"Content-Type\", \"text/html; charset=UTF-8\"},\r\n   {\"Location\", \"http://www.google.co.in/?gfe_rd=cr&ei=2jVEVsWwKaTv8weynIGQDA\"},\r\n   {\"Content-Length\", \"261\"}, {\"Date\", \"Thu, 12 Nov 2015 06:46:50 GMT\"},\r\n   {\"Server\", \"GFE/2.0\"}], status_code: 302}}\r\niex(58)> :erlang.system_info(:port_count)     \r\n12\r\niex(59)> :erlang.system_info(:port_count)     \r\n12\r\n```\r\nAfter about 2mins\r\n```\r\niex(60)> :erlang.system_info(:port_count)     \r\n11\r\n```\r\n\r\nThe delay of 2 mins to free up an used port increases the port count exponentially in my case and hits the limit causing system_limit error. Any ideas how to resolve it?\r\n"}}