{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/thechile/net-ssh/pulls/1","id":44314177,"html_url":"https://github.com/thechile/net-ssh/pull/1","diff_url":"https://github.com/thechile/net-ssh/pull/1.diff","patch_url":"https://github.com/thechile/net-ssh/pull/1.patch","issue_url":"https://api.github.com/repos/thechile/net-ssh/issues/1","number":1,"state":"open","locked":false,"title":"Tidy closed sockets from listeners event loop","user":{"login":"thechile","id":3511504,"avatar_url":"https://avatars.githubusercontent.com/u/3511504?v=3","gravatar_id":"","url":"https://api.github.com/users/thechile","html_url":"https://github.com/thechile","followers_url":"https://api.github.com/users/thechile/followers","following_url":"https://api.github.com/users/thechile/following{/other_user}","gists_url":"https://api.github.com/users/thechile/gists{/gist_id}","starred_url":"https://api.github.com/users/thechile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thechile/subscriptions","organizations_url":"https://api.github.com/users/thechile/orgs","repos_url":"https://api.github.com/users/thechile/repos","events_url":"https://api.github.com/users/thechile/events{/privacy}","received_events_url":"https://api.github.com/users/thechile/received_events","type":"User","site_admin":false},"body":"This is related to https://github.com/net-ssh/net-ssh-gateway/issues/4. I traced the problem to Net::SSH::Compat.io_select which hangs indefinitely when it encounters a closed socket.. which occurs in forward.rb:L94 when the on_open_failed closes the socket. Not sure if this is best place to fix but checking for sockets that are closed and getting rid of them before calling io_select, it fixed the problem i had.","created_at":"2015-09-07T01:34:44Z","updated_at":"2015-09-07T01:34:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thechile/net-ssh/pulls/1/commits","review_comments_url":"https://api.github.com/repos/thechile/net-ssh/pulls/1/comments","review_comment_url":"https://api.github.com/repos/thechile/net-ssh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thechile/net-ssh/issues/1/comments","statuses_url":"https://api.github.com/repos/thechile/net-ssh/statuses/41020debf7422395dd208430a816abd0971022c6","head":{"label":"thechile:thechile-patch-1","ref":"thechile-patch-1","sha":"41020debf7422395dd208430a816abd0971022c6","user":{"login":"thechile","id":3511504,"avatar_url":"https://avatars.githubusercontent.com/u/3511504?v=3","gravatar_id":"","url":"https://api.github.com/users/thechile","html_url":"https://github.com/thechile","followers_url":"https://api.github.com/users/thechile/followers","following_url":"https://api.github.com/users/thechile/following{/other_user}","gists_url":"https://api.github.com/users/thechile/gists{/gist_id}","starred_url":"https://api.github.com/users/thechile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thechile/subscriptions","organizations_url":"https://api.github.com/users/thechile/orgs","repos_url":"https://api.github.com/users/thechile/repos","events_url":"https://api.github.com/users/thechile/events{/privacy}","received_events_url":"https://api.github.com/users/thechile/received_events","type":"User","site_admin":false},"repo":{"id":42025027,"name":"net-ssh","full_name":"thechile/net-ssh","owner":{"login":"thechile","id":3511504,"avatar_url":"https://avatars.githubusercontent.com/u/3511504?v=3","gravatar_id":"","url":"https://api.github.com/users/thechile","html_url":"https://github.com/thechile","followers_url":"https://api.github.com/users/thechile/followers","following_url":"https://api.github.com/users/thechile/following{/other_user}","gists_url":"https://api.github.com/users/thechile/gists{/gist_id}","starred_url":"https://api.github.com/users/thechile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thechile/subscriptions","organizations_url":"https://api.github.com/users/thechile/orgs","repos_url":"https://api.github.com/users/thechile/repos","events_url":"https://api.github.com/users/thechile/events{/privacy}","received_events_url":"https://api.github.com/users/thechile/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thechile/net-ssh","description":"Pure Ruby implementation of an SSH (protocol 2) client","fork":true,"url":"https://api.github.com/repos/thechile/net-ssh","forks_url":"https://api.github.com/repos/thechile/net-ssh/forks","keys_url":"https://api.github.com/repos/thechile/net-ssh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thechile/net-ssh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thechile/net-ssh/teams","hooks_url":"https://api.github.com/repos/thechile/net-ssh/hooks","issue_events_url":"https://api.github.com/repos/thechile/net-ssh/issues/events{/number}","events_url":"https://api.github.com/repos/thechile/net-ssh/events","assignees_url":"https://api.github.com/repos/thechile/net-ssh/assignees{/user}","branches_url":"https://api.github.com/repos/thechile/net-ssh/branches{/branch}","tags_url":"https://api.github.com/repos/thechile/net-ssh/tags","blobs_url":"https://api.github.com/repos/thechile/net-ssh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thechile/net-ssh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thechile/net-ssh/git/refs{/sha}","trees_url":"https://api.github.com/repos/thechile/net-ssh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thechile/net-ssh/statuses/{sha}","languages_url":"https://api.github.com/repos/thechile/net-ssh/languages","stargazers_url":"https://api.github.com/repos/thechile/net-ssh/stargazers","contributors_url":"https://api.github.com/repos/thechile/net-ssh/contributors","subscribers_url":"https://api.github.com/repos/thechile/net-ssh/subscribers","subscription_url":"https://api.github.com/repos/thechile/net-ssh/subscription","commits_url":"https://api.github.com/repos/thechile/net-ssh/commits{/sha}","git_commits_url":"https://api.github.com/repos/thechile/net-ssh/git/commits{/sha}","comments_url":"https://api.github.com/repos/thechile/net-ssh/comments{/number}","issue_comment_url":"https://api.github.com/repos/thechile/net-ssh/issues/comments{/number}","contents_url":"https://api.github.com/repos/thechile/net-ssh/contents/{+path}","compare_url":"https://api.github.com/repos/thechile/net-ssh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thechile/net-ssh/merges","archive_url":"https://api.github.com/repos/thechile/net-ssh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thechile/net-ssh/downloads","issues_url":"https://api.github.com/repos/thechile/net-ssh/issues{/number}","pulls_url":"https://api.github.com/repos/thechile/net-ssh/pulls{/number}","milestones_url":"https://api.github.com/repos/thechile/net-ssh/milestones{/number}","notifications_url":"https://api.github.com/repos/thechile/net-ssh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thechile/net-ssh/labels{/name}","releases_url":"https://api.github.com/repos/thechile/net-ssh/releases{/id}","created_at":"2015-09-07T01:23:42Z","updated_at":"2015-09-07T01:23:43Z","pushed_at":"2015-09-07T01:34:44Z","git_url":"git://github.com/thechile/net-ssh.git","ssh_url":"git@github.com:thechile/net-ssh.git","clone_url":"https://github.com/thechile/net-ssh.git","svn_url":"https://github.com/thechile/net-ssh","homepage":"http://net-ssh.github.com/net-ssh","size":7836,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"thechile:master","ref":"master","sha":"83a98cf01f26456a43560180c27fa8955469a6fd","user":{"login":"thechile","id":3511504,"avatar_url":"https://avatars.githubusercontent.com/u/3511504?v=3","gravatar_id":"","url":"https://api.github.com/users/thechile","html_url":"https://github.com/thechile","followers_url":"https://api.github.com/users/thechile/followers","following_url":"https://api.github.com/users/thechile/following{/other_user}","gists_url":"https://api.github.com/users/thechile/gists{/gist_id}","starred_url":"https://api.github.com/users/thechile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thechile/subscriptions","organizations_url":"https://api.github.com/users/thechile/orgs","repos_url":"https://api.github.com/users/thechile/repos","events_url":"https://api.github.com/users/thechile/events{/privacy}","received_events_url":"https://api.github.com/users/thechile/received_events","type":"User","site_admin":false},"repo":{"id":42025027,"name":"net-ssh","full_name":"thechile/net-ssh","owner":{"login":"thechile","id":3511504,"avatar_url":"https://avatars.githubusercontent.com/u/3511504?v=3","gravatar_id":"","url":"https://api.github.com/users/thechile","html_url":"https://github.com/thechile","followers_url":"https://api.github.com/users/thechile/followers","following_url":"https://api.github.com/users/thechile/following{/other_user}","gists_url":"https://api.github.com/users/thechile/gists{/gist_id}","starred_url":"https://api.github.com/users/thechile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thechile/subscriptions","organizations_url":"https://api.github.com/users/thechile/orgs","repos_url":"https://api.github.com/users/thechile/repos","events_url":"https://api.github.com/users/thechile/events{/privacy}","received_events_url":"https://api.github.com/users/thechile/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thechile/net-ssh","description":"Pure Ruby implementation of an SSH (protocol 2) client","fork":true,"url":"https://api.github.com/repos/thechile/net-ssh","forks_url":"https://api.github.com/repos/thechile/net-ssh/forks","keys_url":"https://api.github.com/repos/thechile/net-ssh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thechile/net-ssh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thechile/net-ssh/teams","hooks_url":"https://api.github.com/repos/thechile/net-ssh/hooks","issue_events_url":"https://api.github.com/repos/thechile/net-ssh/issues/events{/number}","events_url":"https://api.github.com/repos/thechile/net-ssh/events","assignees_url":"https://api.github.com/repos/thechile/net-ssh/assignees{/user}","branches_url":"https://api.github.com/repos/thechile/net-ssh/branches{/branch}","tags_url":"https://api.github.com/repos/thechile/net-ssh/tags","blobs_url":"https://api.github.com/repos/thechile/net-ssh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thechile/net-ssh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thechile/net-ssh/git/refs{/sha}","trees_url":"https://api.github.com/repos/thechile/net-ssh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thechile/net-ssh/statuses/{sha}","languages_url":"https://api.github.com/repos/thechile/net-ssh/languages","stargazers_url":"https://api.github.com/repos/thechile/net-ssh/stargazers","contributors_url":"https://api.github.com/repos/thechile/net-ssh/contributors","subscribers_url":"https://api.github.com/repos/thechile/net-ssh/subscribers","subscription_url":"https://api.github.com/repos/thechile/net-ssh/subscription","commits_url":"https://api.github.com/repos/thechile/net-ssh/commits{/sha}","git_commits_url":"https://api.github.com/repos/thechile/net-ssh/git/commits{/sha}","comments_url":"https://api.github.com/repos/thechile/net-ssh/comments{/number}","issue_comment_url":"https://api.github.com/repos/thechile/net-ssh/issues/comments{/number}","contents_url":"https://api.github.com/repos/thechile/net-ssh/contents/{+path}","compare_url":"https://api.github.com/repos/thechile/net-ssh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thechile/net-ssh/merges","archive_url":"https://api.github.com/repos/thechile/net-ssh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thechile/net-ssh/downloads","issues_url":"https://api.github.com/repos/thechile/net-ssh/issues{/number}","pulls_url":"https://api.github.com/repos/thechile/net-ssh/pulls{/number}","milestones_url":"https://api.github.com/repos/thechile/net-ssh/milestones{/number}","notifications_url":"https://api.github.com/repos/thechile/net-ssh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thechile/net-ssh/labels{/name}","releases_url":"https://api.github.com/repos/thechile/net-ssh/releases{/id}","created_at":"2015-09-07T01:23:42Z","updated_at":"2015-09-07T01:23:43Z","pushed_at":"2015-09-07T01:34:44Z","git_url":"git://github.com/thechile/net-ssh.git","ssh_url":"git@github.com:thechile/net-ssh.git","clone_url":"https://github.com/thechile/net-ssh.git","svn_url":"https://github.com/thechile/net-ssh","homepage":"http://net-ssh.github.com/net-ssh","size":7836,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thechile/net-ssh/pulls/1"},"html":{"href":"https://github.com/thechile/net-ssh/pull/1"},"issue":{"href":"https://api.github.com/repos/thechile/net-ssh/issues/1"},"comments":{"href":"https://api.github.com/repos/thechile/net-ssh/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/thechile/net-ssh/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/thechile/net-ssh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thechile/net-ssh/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/thechile/net-ssh/statuses/41020debf7422395dd208430a816abd0971022c6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":0,"changed_files":1}}