{"action":"opened","number":308,"pull_request":{"url":"https://api.github.com/repos/benoitc/hackney/pulls/308","id":64328284,"html_url":"https://github.com/benoitc/hackney/pull/308","diff_url":"https://github.com/benoitc/hackney/pull/308.diff","patch_url":"https://github.com/benoitc/hackney/pull/308.patch","issue_url":"https://api.github.com/repos/benoitc/hackney/issues/308","number":308,"state":"open","locked":false,"title":"Close socket on errors","user":{"login":"tnt-dev","id":2064785,"avatar_url":"https://avatars.githubusercontent.com/u/2064785?v=3","gravatar_id":"","url":"https://api.github.com/users/tnt-dev","html_url":"https://github.com/tnt-dev","followers_url":"https://api.github.com/users/tnt-dev/followers","following_url":"https://api.github.com/users/tnt-dev/following{/other_user}","gists_url":"https://api.github.com/users/tnt-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/tnt-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tnt-dev/subscriptions","organizations_url":"https://api.github.com/users/tnt-dev/orgs","repos_url":"https://api.github.com/users/tnt-dev/repos","events_url":"https://api.github.com/users/tnt-dev/events{/privacy}","received_events_url":"https://api.github.com/users/tnt-dev/received_events","type":"User","site_admin":false},"body":"We should always close sockets to avoid leak.","created_at":"2016-03-28T14:42:39Z","updated_at":"2016-03-28T14:42:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/benoitc/hackney/pulls/308/commits","review_comments_url":"https://api.github.com/repos/benoitc/hackney/pulls/308/comments","review_comment_url":"https://api.github.com/repos/benoitc/hackney/pulls/comments{/number}","comments_url":"https://api.github.com/repos/benoitc/hackney/issues/308/comments","statuses_url":"https://api.github.com/repos/benoitc/hackney/statuses/33097cf89e2dfac67e83a9303400d92dedd0cd07","head":{"label":"tnt-dev:close-socket-on-errors","ref":"close-socket-on-errors","sha":"33097cf89e2dfac67e83a9303400d92dedd0cd07","user":{"login":"tnt-dev","id":2064785,"avatar_url":"https://avatars.githubusercontent.com/u/2064785?v=3","gravatar_id":"","url":"https://api.github.com/users/tnt-dev","html_url":"https://github.com/tnt-dev","followers_url":"https://api.github.com/users/tnt-dev/followers","following_url":"https://api.github.com/users/tnt-dev/following{/other_user}","gists_url":"https://api.github.com/users/tnt-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/tnt-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tnt-dev/subscriptions","organizations_url":"https://api.github.com/users/tnt-dev/orgs","repos_url":"https://api.github.com/users/tnt-dev/repos","events_url":"https://api.github.com/users/tnt-dev/events{/privacy}","received_events_url":"https://api.github.com/users/tnt-dev/received_events","type":"User","site_admin":false},"repo":{"id":24501314,"name":"hackney","full_name":"tnt-dev/hackney","owner":{"login":"tnt-dev","id":2064785,"avatar_url":"https://avatars.githubusercontent.com/u/2064785?v=3","gravatar_id":"","url":"https://api.github.com/users/tnt-dev","html_url":"https://github.com/tnt-dev","followers_url":"https://api.github.com/users/tnt-dev/followers","following_url":"https://api.github.com/users/tnt-dev/following{/other_user}","gists_url":"https://api.github.com/users/tnt-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/tnt-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tnt-dev/subscriptions","organizations_url":"https://api.github.com/users/tnt-dev/orgs","repos_url":"https://api.github.com/users/tnt-dev/repos","events_url":"https://api.github.com/users/tnt-dev/events{/privacy}","received_events_url":"https://api.github.com/users/tnt-dev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tnt-dev/hackney","description":"simple HTTP client in Erlang","fork":true,"url":"https://api.github.com/repos/tnt-dev/hackney","forks_url":"https://api.github.com/repos/tnt-dev/hackney/forks","keys_url":"https://api.github.com/repos/tnt-dev/hackney/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tnt-dev/hackney/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tnt-dev/hackney/teams","hooks_url":"https://api.github.com/repos/tnt-dev/hackney/hooks","issue_events_url":"https://api.github.com/repos/tnt-dev/hackney/issues/events{/number}","events_url":"https://api.github.com/repos/tnt-dev/hackney/events","assignees_url":"https://api.github.com/repos/tnt-dev/hackney/assignees{/user}","branches_url":"https://api.github.com/repos/tnt-dev/hackney/branches{/branch}","tags_url":"https://api.github.com/repos/tnt-dev/hackney/tags","blobs_url":"https://api.github.com/repos/tnt-dev/hackney/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tnt-dev/hackney/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tnt-dev/hackney/git/refs{/sha}","trees_url":"https://api.github.com/repos/tnt-dev/hackney/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tnt-dev/hackney/statuses/{sha}","languages_url":"https://api.github.com/repos/tnt-dev/hackney/languages","stargazers_url":"https://api.github.com/repos/tnt-dev/hackney/stargazers","contributors_url":"https://api.github.com/repos/tnt-dev/hackney/contributors","subscribers_url":"https://api.github.com/repos/tnt-dev/hackney/subscribers","subscription_url":"https://api.github.com/repos/tnt-dev/hackney/subscription","commits_url":"https://api.github.com/repos/tnt-dev/hackney/commits{/sha}","git_commits_url":"https://api.github.com/repos/tnt-dev/hackney/git/commits{/sha}","comments_url":"https://api.github.com/repos/tnt-dev/hackney/comments{/number}","issue_comment_url":"https://api.github.com/repos/tnt-dev/hackney/issues/comments{/number}","contents_url":"https://api.github.com/repos/tnt-dev/hackney/contents/{+path}","compare_url":"https://api.github.com/repos/tnt-dev/hackney/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tnt-dev/hackney/merges","archive_url":"https://api.github.com/repos/tnt-dev/hackney/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tnt-dev/hackney/downloads","issues_url":"https://api.github.com/repos/tnt-dev/hackney/issues{/number}","pulls_url":"https://api.github.com/repos/tnt-dev/hackney/pulls{/number}","milestones_url":"https://api.github.com/repos/tnt-dev/hackney/milestones{/number}","notifications_url":"https://api.github.com/repos/tnt-dev/hackney/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tnt-dev/hackney/labels{/name}","releases_url":"https://api.github.com/repos/tnt-dev/hackney/releases{/id}","deployments_url":"https://api.github.com/repos/tnt-dev/hackney/deployments","created_at":"2014-09-26T13:52:28Z","updated_at":"2016-03-24T09:51:23Z","pushed_at":"2016-03-28T14:38:39Z","git_url":"git://github.com/tnt-dev/hackney.git","ssh_url":"git@github.com:tnt-dev/hackney.git","clone_url":"https://github.com/tnt-dev/hackney.git","svn_url":"https://github.com/tnt-dev/hackney","homepage":"","size":4607,"stargazers_count":0,"watchers_count":0,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"benoitc:master","ref":"master","sha":"66a53291d3fef4f46f7baa99016725c7659aa022","user":{"login":"benoitc","id":14498,"avatar_url":"https://avatars.githubusercontent.com/u/14498?v=3","gravatar_id":"","url":"https://api.github.com/users/benoitc","html_url":"https://github.com/benoitc","followers_url":"https://api.github.com/users/benoitc/followers","following_url":"https://api.github.com/users/benoitc/following{/other_user}","gists_url":"https://api.github.com/users/benoitc/gists{/gist_id}","starred_url":"https://api.github.com/users/benoitc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoitc/subscriptions","organizations_url":"https://api.github.com/users/benoitc/orgs","repos_url":"https://api.github.com/users/benoitc/repos","events_url":"https://api.github.com/users/benoitc/events{/privacy}","received_events_url":"https://api.github.com/users/benoitc/received_events","type":"User","site_admin":false},"repo":{"id":4864481,"name":"hackney","full_name":"benoitc/hackney","owner":{"login":"benoitc","id":14498,"avatar_url":"https://avatars.githubusercontent.com/u/14498?v=3","gravatar_id":"","url":"https://api.github.com/users/benoitc","html_url":"https://github.com/benoitc","followers_url":"https://api.github.com/users/benoitc/followers","following_url":"https://api.github.com/users/benoitc/following{/other_user}","gists_url":"https://api.github.com/users/benoitc/gists{/gist_id}","starred_url":"https://api.github.com/users/benoitc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoitc/subscriptions","organizations_url":"https://api.github.com/users/benoitc/orgs","repos_url":"https://api.github.com/users/benoitc/repos","events_url":"https://api.github.com/users/benoitc/events{/privacy}","received_events_url":"https://api.github.com/users/benoitc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benoitc/hackney","description":"simple HTTP client in Erlang","fork":false,"url":"https://api.github.com/repos/benoitc/hackney","forks_url":"https://api.github.com/repos/benoitc/hackney/forks","keys_url":"https://api.github.com/repos/benoitc/hackney/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benoitc/hackney/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benoitc/hackney/teams","hooks_url":"https://api.github.com/repos/benoitc/hackney/hooks","issue_events_url":"https://api.github.com/repos/benoitc/hackney/issues/events{/number}","events_url":"https://api.github.com/repos/benoitc/hackney/events","assignees_url":"https://api.github.com/repos/benoitc/hackney/assignees{/user}","branches_url":"https://api.github.com/repos/benoitc/hackney/branches{/branch}","tags_url":"https://api.github.com/repos/benoitc/hackney/tags","blobs_url":"https://api.github.com/repos/benoitc/hackney/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benoitc/hackney/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benoitc/hackney/git/refs{/sha}","trees_url":"https://api.github.com/repos/benoitc/hackney/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benoitc/hackney/statuses/{sha}","languages_url":"https://api.github.com/repos/benoitc/hackney/languages","stargazers_url":"https://api.github.com/repos/benoitc/hackney/stargazers","contributors_url":"https://api.github.com/repos/benoitc/hackney/contributors","subscribers_url":"https://api.github.com/repos/benoitc/hackney/subscribers","subscription_url":"https://api.github.com/repos/benoitc/hackney/subscription","commits_url":"https://api.github.com/repos/benoitc/hackney/commits{/sha}","git_commits_url":"https://api.github.com/repos/benoitc/hackney/git/commits{/sha}","comments_url":"https://api.github.com/repos/benoitc/hackney/comments{/number}","issue_comment_url":"https://api.github.com/repos/benoitc/hackney/issues/comments{/number}","contents_url":"https://api.github.com/repos/benoitc/hackney/contents/{+path}","compare_url":"https://api.github.com/repos/benoitc/hackney/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benoitc/hackney/merges","archive_url":"https://api.github.com/repos/benoitc/hackney/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benoitc/hackney/downloads","issues_url":"https://api.github.com/repos/benoitc/hackney/issues{/number}","pulls_url":"https://api.github.com/repos/benoitc/hackney/pulls{/number}","milestones_url":"https://api.github.com/repos/benoitc/hackney/milestones{/number}","notifications_url":"https://api.github.com/repos/benoitc/hackney/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benoitc/hackney/labels{/name}","releases_url":"https://api.github.com/repos/benoitc/hackney/releases{/id}","deployments_url":"https://api.github.com/repos/benoitc/hackney/deployments","created_at":"2012-07-02T20:24:40Z","updated_at":"2016-03-26T21:36:35Z","pushed_at":"2016-03-25T09:18:54Z","git_url":"git://github.com/benoitc/hackney.git","ssh_url":"git@github.com:benoitc/hackney.git","clone_url":"https://github.com/benoitc/hackney.git","svn_url":"https://github.com/benoitc/hackney","homepage":"","size":5037,"stargazers_count":482,"watchers_count":482,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":139,"mirror_url":null,"open_issues_count":43,"forks":139,"open_issues":43,"watchers":482,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/benoitc/hackney/pulls/308"},"html":{"href":"https://github.com/benoitc/hackney/pull/308"},"issue":{"href":"https://api.github.com/repos/benoitc/hackney/issues/308"},"comments":{"href":"https://api.github.com/repos/benoitc/hackney/issues/308/comments"},"review_comments":{"href":"https://api.github.com/repos/benoitc/hackney/pulls/308/comments"},"review_comment":{"href":"https://api.github.com/repos/benoitc/hackney/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/benoitc/hackney/pulls/308/commits"},"statuses":{"href":"https://api.github.com/repos/benoitc/hackney/statuses/33097cf89e2dfac67e83a9303400d92dedd0cd07"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":17,"deletions":17,"changed_files":1}}