{"action":"created","issue":{"url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/59","labels_url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/59/comments","events_url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/59/events","html_url":"https://github.com/daid/EmptyEpsilon/issues/59","id":117181913,"number":59,"title":"Send server shutdown when exiting to clients","user":{"login":"kwadroke","id":3247032,"avatar_url":"https://avatars.githubusercontent.com/u/3247032?v=3","gravatar_id":"","url":"https://api.github.com/users/kwadroke","html_url":"https://github.com/kwadroke","followers_url":"https://api.github.com/users/kwadroke/followers","following_url":"https://api.github.com/users/kwadroke/following{/other_user}","gists_url":"https://api.github.com/users/kwadroke/gists{/gist_id}","starred_url":"https://api.github.com/users/kwadroke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwadroke/subscriptions","organizations_url":"https://api.github.com/users/kwadroke/orgs","repos_url":"https://api.github.com/users/kwadroke/repos","events_url":"https://api.github.com/users/kwadroke/events{/privacy}","received_events_url":"https://api.github.com/users/kwadroke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-16T17:51:33Z","updated_at":"2015-11-17T16:02:01Z","closed_at":null,"body":"When the server is shutdown, the clients aren't told to disconnect/go back to menu screen.\r\nThis might be fixed by sending a server a message that the server is shutting down, and/or have the client disconnect after X number of seconds not receiving anything from server.\r\n\r\nSomething like this is especially needed with the autoconnect option in the options.ini file or via the command line/Windows shortcut.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/comments/157413856","html_url":"https://github.com/daid/EmptyEpsilon/issues/59#issuecomment-157413856","issue_url":"https://api.github.com/repos/daid/EmptyEpsilon/issues/59","id":157413856,"user":{"login":"kwadroke","id":3247032,"avatar_url":"https://avatars.githubusercontent.com/u/3247032?v=3","gravatar_id":"","url":"https://api.github.com/users/kwadroke","html_url":"https://github.com/kwadroke","followers_url":"https://api.github.com/users/kwadroke/followers","following_url":"https://api.github.com/users/kwadroke/following{/other_user}","gists_url":"https://api.github.com/users/kwadroke/gists{/gist_id}","starred_url":"https://api.github.com/users/kwadroke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwadroke/subscriptions","organizations_url":"https://api.github.com/users/kwadroke/orgs","repos_url":"https://api.github.com/users/kwadroke/repos","events_url":"https://api.github.com/users/kwadroke/events{/privacy}","received_events_url":"https://api.github.com/users/kwadroke/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T16:02:01Z","updated_at":"2015-11-17T16:02:01Z","body":"Think I might have figured out the issue I am having. Looks like the connection to the server from the client is still in TIME_WAIT status. Which is causing the Server not to be able to use the same TCP Port when run on the same machine as the client. I only noticed this when I tried to run it as a headless server since the Game window wasn't covering my terminal.\r\n\r\noutput of _netstat -tapn_ when exiting the server \r\n```\r\ntcp        0      0 10.0.2.15:35666         10.0.2.15:59745         TIME_WAIT   - \r\n```\r\nOnce the connection finally clears out, it will allow me to restart the server.\r\n\r\nMost people will probably not notice this problem unless they run the server and the client on the same machine."}}