{"action":"created","issue":{"url":"https://api.github.com/repos/sorentwo/braintree-elixir/issues/20","repository_url":"https://api.github.com/repos/sorentwo/braintree-elixir","labels_url":"https://api.github.com/repos/sorentwo/braintree-elixir/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/sorentwo/braintree-elixir/issues/20/comments","events_url":"https://api.github.com/repos/sorentwo/braintree-elixir/issues/20/events","html_url":"https://github.com/sorentwo/braintree-elixir/issues/20","id":169212012,"number":20,"title":"Occasional {:error, \":closed\"} errors for API calls","user":{"login":"nauger","id":505727,"avatar_url":"https://avatars.githubusercontent.com/u/505727?v=3","gravatar_id":"","url":"https://api.github.com/users/nauger","html_url":"https://github.com/nauger","followers_url":"https://api.github.com/users/nauger/followers","following_url":"https://api.github.com/users/nauger/following{/other_user}","gists_url":"https://api.github.com/users/nauger/gists{/gist_id}","starred_url":"https://api.github.com/users/nauger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nauger/subscriptions","organizations_url":"https://api.github.com/users/nauger/orgs","repos_url":"https://api.github.com/users/nauger/repos","events_url":"https://api.github.com/users/nauger/events{/privacy}","received_events_url":"https://api.github.com/users/nauger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-03T19:23:30Z","updated_at":"2016-08-11T22:59:21Z","closed_at":null,"body":"I brought this up previously in an unrelated GH issue, but wanted to re-surface incase anyone else using this library might have additional insight.\r\n\r\nEvery once in awhile (every few days) we'll see calls fail with a match error on:\r\n\r\n```\r\n{:error, \":closed\"}\r\n```\r\n\r\nI've attempted to tune-down our pool by creating a special pool for braintree-elixir:\r\n\r\n```\r\n:hackney_pool.child_spec(:braintree_elixir_pool, [timeout: 30000, max_connections: 10])\r\n```\r\n\r\nWhich I then use in this branch:\r\n\r\nhttps://github.com/revzilla/braintree-elixir/commit/e6c99e88e01971228c56705d1347048e8f98c37f\r\n\r\nUnfortunately, we still see this error on occasion.  I've reached out to Braintree support, and while they won't support an unofficial library directly, they did mention that their official braintree libraries do NOT pool connections or keep sockets open (but that if we did, they'd recommend to close after 50 seconds at most.)\r\n\r\nGiven that, should the default be to NOT pool braintree connections?\r\n\r\nThoughts?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sorentwo/braintree-elixir/issues/comments/239318754","html_url":"https://github.com/sorentwo/braintree-elixir/issues/20#issuecomment-239318754","issue_url":"https://api.github.com/repos/sorentwo/braintree-elixir/issues/20","id":239318754,"user":{"login":"nauger","id":505727,"avatar_url":"https://avatars.githubusercontent.com/u/505727?v=3","gravatar_id":"","url":"https://api.github.com/users/nauger","html_url":"https://github.com/nauger","followers_url":"https://api.github.com/users/nauger/followers","following_url":"https://api.github.com/users/nauger/following{/other_user}","gists_url":"https://api.github.com/users/nauger/gists{/gist_id}","starred_url":"https://api.github.com/users/nauger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nauger/subscriptions","organizations_url":"https://api.github.com/users/nauger/orgs","repos_url":"https://api.github.com/users/nauger/repos","events_url":"https://api.github.com/users/nauger/events{/privacy}","received_events_url":"https://api.github.com/users/nauger/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T22:59:21Z","updated_at":"2016-08-11T22:59:21Z","body":"For the first time, I was actually able to get this error to occur in development (albeit, not on subsequent tries.)\r\n\r\nThis was on the most recent 0.6.0.\r\n\r\nThe hackney `1.6.1` is actually messed up on hex right now, I think.  Hex sees it as version 1.6.1, but the mix.exs file contained there-in is called 1.6.0."}}
{"actor":{"display_login":"nauger"}}