{"action":"created","issue":{"url":"https://api.github.com/repos/textmate/rmate/issues/48","repository_url":"https://api.github.com/repos/textmate/rmate","labels_url":"https://api.github.com/repos/textmate/rmate/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/textmate/rmate/issues/48/comments","events_url":"https://api.github.com/repos/textmate/rmate/issues/48/events","html_url":"https://github.com/textmate/rmate/issues/48","id":158454069,"number":48,"title":"logging back after a broken pipe","user":{"login":"hma02","id":12686013,"avatar_url":"https://avatars3.githubusercontent.com/u/12686013?v=4","gravatar_id":"","url":"https://api.github.com/users/hma02","html_url":"https://github.com/hma02","followers_url":"https://api.github.com/users/hma02/followers","following_url":"https://api.github.com/users/hma02/following{/other_user}","gists_url":"https://api.github.com/users/hma02/gists{/gist_id}","starred_url":"https://api.github.com/users/hma02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hma02/subscriptions","organizations_url":"https://api.github.com/users/hma02/orgs","repos_url":"https://api.github.com/users/hma02/repos","events_url":"https://api.github.com/users/hma02/events{/privacy}","received_events_url":"https://api.github.com/users/hma02/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-03T21:02:20Z","updated_at":"2018-02-20T17:15:08Z","closed_at":"2016-07-07T06:51:10Z","author_association":"NONE","body":"Hi,\n\nI got the following error when logging back to my ssh server after I got a broken pipe ssh connection (probably due to time out). The `username` is my username on the cluster I logged into.\n\n```\nWarning: remote port forwarding failed for listen port 52698\n```\n\nThen when I use `rmate` to open a file, it gives:\n\n```\n/home/username/bin/rmate:174:in `readline': end of file reached (EOFError)\n    from /home/username/bin/rmate:174:in `connect_and_handle_cmds'\n    from /home/username/bin/rmate:223\n    from /home/username/bin/rmate:222:in `fork'\n    from /home/username/bin/rmate:222\n```\n\n`netstat -ltnp | grep 52698` gives the following:\n\n```\n(Not all processes could be identified, non-owned process info\n will not be shown, you would have to be root to see it all.)\ntcp        0      0 127.0.0.1:52698             0.0.0.0:*                   LISTEN      -                   \ntcp        0      0 ::1:52698                   :::*                        LISTEN      -   \n```\n\nIt seems that I cannot see the pid of those connections. I am just wondering if there's any way to close those dead connections so that I can use `rmate` again.\n\nI know that logging out completely and waiting for a while will get those connections wiped out on the cluster. But I just wonder if there's a more efficient way to addressing the problem.\n\nI have been using remote editing with textmate by ssh tunnel method for a while. (Thanks to it, I was able to resume my work anywhere with internet access.)\n"},"comment":{"url":"https://api.github.com/repos/textmate/rmate/issues/comments/367049528","html_url":"https://github.com/textmate/rmate/issues/48#issuecomment-367049528","issue_url":"https://api.github.com/repos/textmate/rmate/issues/48","id":367049528,"user":{"login":"blackjack75","id":473158,"avatar_url":"https://avatars1.githubusercontent.com/u/473158?v=4","gravatar_id":"","url":"https://api.github.com/users/blackjack75","html_url":"https://github.com/blackjack75","followers_url":"https://api.github.com/users/blackjack75/followers","following_url":"https://api.github.com/users/blackjack75/following{/other_user}","gists_url":"https://api.github.com/users/blackjack75/gists{/gist_id}","starred_url":"https://api.github.com/users/blackjack75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackjack75/subscriptions","organizations_url":"https://api.github.com/users/blackjack75/orgs","repos_url":"https://api.github.com/users/blackjack75/repos","events_url":"https://api.github.com/users/blackjack75/events{/privacy}","received_events_url":"https://api.github.com/users/blackjack75/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T17:15:08Z","updated_at":"2018-02-20T17:15:08Z","author_association":"NONE","body":"I was so tired of this happening all the time since moving to Brazil (horrible connectivity) that I made simple script to kill all existing ssh connections. Of course this will also kill my active connection! It could be improved by excluding current sessions' sshd pid.\r\n\r\n```\r\n#!/bin/sh\r\nsudo killall -u YOURUSER -r sshd\r\n\r\n```"}}
{"actor":{"display_login":"blackjack75"}}