{"action":"opened","number":53,"pull_request":{"url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/pulls/53","id":40637267,"html_url":"https://github.com/JuliaWeb/GnuTLS.jl/pull/53","diff_url":"https://github.com/JuliaWeb/GnuTLS.jl/pull/53.diff","patch_url":"https://github.com/JuliaWeb/GnuTLS.jl/pull/53.patch","issue_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/issues/53","number":53,"state":"open","locked":false,"title":"Close IOs when we're done","user":{"login":"quinnj","id":2896623,"avatar_url":"https://avatars.githubusercontent.com/u/2896623?v=3","gravatar_id":"","url":"https://api.github.com/users/quinnj","html_url":"https://github.com/quinnj","followers_url":"https://api.github.com/users/quinnj/followers","following_url":"https://api.github.com/users/quinnj/following{/other_user}","gists_url":"https://api.github.com/users/quinnj/gists{/gist_id}","starred_url":"https://api.github.com/users/quinnj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quinnj/subscriptions","organizations_url":"https://api.github.com/users/quinnj/orgs","repos_url":"https://api.github.com/users/quinnj/repos","events_url":"https://api.github.com/users/quinnj/events{/privacy}","received_events_url":"https://api.github.com/users/quinnj/received_events","type":"User","site_admin":false},"body":"I have a few use-cases where I'm repeatedly doing POST requests over a couple hours and I started noticing that I'd consistently see a EATHROW or some kind of system error that was pretty cryptic. But then one time, I tried to open a csv file with `Base.open(file)` and got a \"too many open file handles\" error. I then checked my `lsof` and sure enough, there were pages of old TCP sockets lying around from all my POST requests.\r\n\r\n@Keno, it's not going to break anything to close these, right? I first started debugging this through Requests.jl, but realized that it's actually the `Session` that was not doing the closing. Should we instead do the closing in Requests.jl?","created_at":"2015-07-23T05:01:42Z","updated_at":"2015-07-23T05:01:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/pulls/53/commits","review_comments_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/pulls/53/comments","review_comment_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/issues/53/comments","statuses_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/statuses/68cdef5d844d9af28cc8f65de9de51cf7d0aa999","head":{"label":"JuliaWeb:jq/leakysockets","ref":"jq/leakysockets","sha":"68cdef5d844d9af28cc8f65de9de51cf7d0aa999","user":{"login":"JuliaWeb","id":8564604,"avatar_url":"https://avatars.githubusercontent.com/u/8564604?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaWeb","html_url":"https://github.com/JuliaWeb","followers_url":"https://api.github.com/users/JuliaWeb/followers","following_url":"https://api.github.com/users/JuliaWeb/following{/other_user}","gists_url":"https://api.github.com/users/JuliaWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaWeb/subscriptions","organizations_url":"https://api.github.com/users/JuliaWeb/orgs","repos_url":"https://api.github.com/users/JuliaWeb/repos","events_url":"https://api.github.com/users/JuliaWeb/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaWeb/received_events","type":"Organization","site_admin":false},"repo":{"id":11304765,"name":"GnuTLS.jl","full_name":"JuliaWeb/GnuTLS.jl","owner":{"login":"JuliaWeb","id":8564604,"avatar_url":"https://avatars.githubusercontent.com/u/8564604?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaWeb","html_url":"https://github.com/JuliaWeb","followers_url":"https://api.github.com/users/JuliaWeb/followers","following_url":"https://api.github.com/users/JuliaWeb/following{/other_user}","gists_url":"https://api.github.com/users/JuliaWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaWeb/subscriptions","organizations_url":"https://api.github.com/users/JuliaWeb/orgs","repos_url":"https://api.github.com/users/JuliaWeb/repos","events_url":"https://api.github.com/users/JuliaWeb/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaWeb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JuliaWeb/GnuTLS.jl","description":"Transport Level Security for Julia Streams provided by GnuTLS","fork":false,"url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl","forks_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/forks","keys_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/teams","hooks_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/hooks","issue_events_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/events","assignees_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/tags","blobs_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/languages","stargazers_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/stargazers","contributors_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/contributors","subscribers_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/subscribers","subscription_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/subscription","commits_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/merges","archive_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/downloads","issues_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/labels{/name}","releases_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/releases{/id}","created_at":"2013-07-10T06:56:57Z","updated_at":"2015-03-24T19:19:38Z","pushed_at":"2015-07-23T04:54:49Z","git_url":"git://github.com/JuliaWeb/GnuTLS.jl.git","ssh_url":"git@github.com:JuliaWeb/GnuTLS.jl.git","clone_url":"https://github.com/JuliaWeb/GnuTLS.jl.git","svn_url":"https://github.com/JuliaWeb/GnuTLS.jl","homepage":null,"size":375,"stargazers_count":4,"watchers_count":4,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":12,"forks":10,"open_issues":12,"watchers":4,"default_branch":"master"}},"base":{"label":"JuliaWeb:master","ref":"master","sha":"ca264a5448ceb49c0e0494877b81c65addcf7b12","user":{"login":"JuliaWeb","id":8564604,"avatar_url":"https://avatars.githubusercontent.com/u/8564604?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaWeb","html_url":"https://github.com/JuliaWeb","followers_url":"https://api.github.com/users/JuliaWeb/followers","following_url":"https://api.github.com/users/JuliaWeb/following{/other_user}","gists_url":"https://api.github.com/users/JuliaWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaWeb/subscriptions","organizations_url":"https://api.github.com/users/JuliaWeb/orgs","repos_url":"https://api.github.com/users/JuliaWeb/repos","events_url":"https://api.github.com/users/JuliaWeb/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaWeb/received_events","type":"Organization","site_admin":false},"repo":{"id":11304765,"name":"GnuTLS.jl","full_name":"JuliaWeb/GnuTLS.jl","owner":{"login":"JuliaWeb","id":8564604,"avatar_url":"https://avatars.githubusercontent.com/u/8564604?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaWeb","html_url":"https://github.com/JuliaWeb","followers_url":"https://api.github.com/users/JuliaWeb/followers","following_url":"https://api.github.com/users/JuliaWeb/following{/other_user}","gists_url":"https://api.github.com/users/JuliaWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaWeb/subscriptions","organizations_url":"https://api.github.com/users/JuliaWeb/orgs","repos_url":"https://api.github.com/users/JuliaWeb/repos","events_url":"https://api.github.com/users/JuliaWeb/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaWeb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JuliaWeb/GnuTLS.jl","description":"Transport Level Security for Julia Streams provided by GnuTLS","fork":false,"url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl","forks_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/forks","keys_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/teams","hooks_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/hooks","issue_events_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/events","assignees_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/tags","blobs_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/languages","stargazers_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/stargazers","contributors_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/contributors","subscribers_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/subscribers","subscription_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/subscription","commits_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/merges","archive_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/downloads","issues_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/labels{/name}","releases_url":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/releases{/id}","created_at":"2013-07-10T06:56:57Z","updated_at":"2015-03-24T19:19:38Z","pushed_at":"2015-07-23T04:54:49Z","git_url":"git://github.com/JuliaWeb/GnuTLS.jl.git","ssh_url":"git@github.com:JuliaWeb/GnuTLS.jl.git","clone_url":"https://github.com/JuliaWeb/GnuTLS.jl.git","svn_url":"https://github.com/JuliaWeb/GnuTLS.jl","homepage":null,"size":375,"stargazers_count":4,"watchers_count":4,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":12,"forks":10,"open_issues":12,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/pulls/53"},"html":{"href":"https://github.com/JuliaWeb/GnuTLS.jl/pull/53"},"issue":{"href":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/issues/53"},"comments":{"href":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/JuliaWeb/GnuTLS.jl/statuses/68cdef5d844d9af28cc8f65de9de51cf7d0aa999"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":0,"changed_files":1}}