{"action":"closed","issue":{"url":"https://api.github.com/repos/mscdex/ssh2/issues/337","labels_url":"https://api.github.com/repos/mscdex/ssh2/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/mscdex/ssh2/issues/337/comments","events_url":"https://api.github.com/repos/mscdex/ssh2/issues/337/events","html_url":"https://github.com/mscdex/ssh2/issues/337","id":113852342,"number":337,"title":"readyTimeout problem","user":{"login":"Kurtas","id":970983,"avatar_url":"https://avatars.githubusercontent.com/u/970983?v=3","gravatar_id":"","url":"https://api.github.com/users/Kurtas","html_url":"https://github.com/Kurtas","followers_url":"https://api.github.com/users/Kurtas/followers","following_url":"https://api.github.com/users/Kurtas/following{/other_user}","gists_url":"https://api.github.com/users/Kurtas/gists{/gist_id}","starred_url":"https://api.github.com/users/Kurtas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kurtas/subscriptions","organizations_url":"https://api.github.com/users/Kurtas/orgs","repos_url":"https://api.github.com/users/Kurtas/repos","events_url":"https://api.github.com/users/Kurtas/events{/privacy}","received_events_url":"https://api.github.com/users/Kurtas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-10-28T15:46:50Z","updated_at":"2015-10-29T18:52:26Z","closed_at":"2015-10-29T18:52:26Z","body":"Hi, \r\n\r\nI have problem that client doesn't destroy socket connection. When I have device where is enabled 22 port for SSH, but the device refuses a connection immediately after success connection, then client still \"waiting\" - socket isn't destroyed.\r\n\r\nI'm using readyTimeout in config, but you have clearTimeout(self._readyTimeout); in end & close events and this events are fired before timeout.\r\n\r\nI can listen for end and close and destroy it by myself, but I think that it's a bug. Can you confirm?"}}