{"action":"created","issue":{"url":"https://api.github.com/repos/keithw/mosh/issues/585","labels_url":"https://api.github.com/repos/keithw/mosh/issues/585/labels{/name}","comments_url":"https://api.github.com/repos/keithw/mosh/issues/585/comments","events_url":"https://api.github.com/repos/keithw/mosh/issues/585/events","html_url":"https://github.com/keithw/mosh/issues/585","id":58821537,"number":585,"title":"feature request - replace/restart mosh-server on requested port","user":{"login":"fungs","id":8776981,"avatar_url":"https://avatars.githubusercontent.com/u/8776981?v=3","gravatar_id":"","url":"https://api.github.com/users/fungs","html_url":"https://github.com/fungs","followers_url":"https://api.github.com/users/fungs/followers","following_url":"https://api.github.com/users/fungs/following{/other_user}","gists_url":"https://api.github.com/users/fungs/gists{/gist_id}","starred_url":"https://api.github.com/users/fungs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fungs/subscriptions","organizations_url":"https://api.github.com/users/fungs/orgs","repos_url":"https://api.github.com/users/fungs/repos","events_url":"https://api.github.com/users/fungs/events{/privacy}","received_events_url":"https://api.github.com/users/fungs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-24T23:08:54Z","updated_at":"2015-02-25T08:50:38Z","closed_at":"2015-02-24T23:12:01Z","body":"Hi,\r\n\r\nit often happens to me that a running mosh session isn't responding any more or the original device is not going to reconnect. As I'm using a single UDP port, I have to kill the mosh server before I can run a new one on the server. It would be really useful if the mosh wrapper could detect a running server on a port by the same user and then kill this server and start a new one or send the server a signal which will cause the server to create and report a new key somehow."},"comment":{"url":"https://api.github.com/repos/keithw/mosh/issues/comments/75925251","html_url":"https://github.com/keithw/mosh/issues/585#issuecomment-75925251","issue_url":"https://api.github.com/repos/keithw/mosh/issues/585","id":75925251,"user":{"login":"keithw","id":208955,"avatar_url":"https://avatars.githubusercontent.com/u/208955?v=3","gravatar_id":"","url":"https://api.github.com/users/keithw","html_url":"https://github.com/keithw","followers_url":"https://api.github.com/users/keithw/followers","following_url":"https://api.github.com/users/keithw/following{/other_user}","gists_url":"https://api.github.com/users/keithw/gists{/gist_id}","starred_url":"https://api.github.com/users/keithw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keithw/subscriptions","organizations_url":"https://api.github.com/users/keithw/orgs","repos_url":"https://api.github.com/users/keithw/repos","events_url":"https://api.github.com/users/keithw/events{/privacy}","received_events_url":"https://api.github.com/users/keithw/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T08:50:38Z","updated_at":"2015-02-25T08:50:38Z","body":"@fungs: The screen approach will kill the old mosh-server (since you're detaching the old screen and causing the old mosh-server to exit)  -- it won't leave it hanging around.\r\n\r\nWhether it does so in time to free up the port is another question, and cgull may be right on that."}}