{"action":"created","issue":{"url":"https://api.github.com/repos/martylamb/nailgun/issues/49","labels_url":"https://api.github.com/repos/martylamb/nailgun/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/martylamb/nailgun/issues/49/comments","events_url":"https://api.github.com/repos/martylamb/nailgun/issues/49/events","html_url":"https://github.com/martylamb/nailgun/pull/49","id":47899809,"number":49,"title":"try to fix race condition causing exit code 227","user":{"login":"dwightguth","id":5104541,"avatar_url":"https://avatars.githubusercontent.com/u/5104541?v=3","gravatar_id":"","url":"https://api.github.com/users/dwightguth","html_url":"https://github.com/dwightguth","followers_url":"https://api.github.com/users/dwightguth/followers","following_url":"https://api.github.com/users/dwightguth/following{/other_user}","gists_url":"https://api.github.com/users/dwightguth/gists{/gist_id}","starred_url":"https://api.github.com/users/dwightguth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwightguth/subscriptions","organizations_url":"https://api.github.com/users/dwightguth/orgs","repos_url":"https://api.github.com/users/dwightguth/repos","events_url":"https://api.github.com/users/dwightguth/events{/privacy}","received_events_url":"https://api.github.com/users/dwightguth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-11-05T22:53:59Z","updated_at":"2015-05-21T14:59:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/martylamb/nailgun/pulls/49","html_url":"https://github.com/martylamb/nailgun/pull/49","diff_url":"https://github.com/martylamb/nailgun/pull/49.diff","patch_url":"https://github.com/martylamb/nailgun/pull/49.patch"},"body":"Whenever I tried to run nailgun, I would always see intermittent socket disconnects causing the client to return error code 227 before it had finished printing everything to stdout/stderr. After I made this modification to the code, those went away. I believe what is happening is that socket.close does not wait for all the data to be sent to the client before breaking the connection."},"comment":{"url":"https://api.github.com/repos/martylamb/nailgun/issues/comments/104310022","html_url":"https://github.com/martylamb/nailgun/pull/49#issuecomment-104310022","issue_url":"https://api.github.com/repos/martylamb/nailgun/issues/49","id":104310022,"user":{"login":"sdwilsh","id":656602,"avatar_url":"https://avatars.githubusercontent.com/u/656602?v=3","gravatar_id":"","url":"https://api.github.com/users/sdwilsh","html_url":"https://github.com/sdwilsh","followers_url":"https://api.github.com/users/sdwilsh/followers","following_url":"https://api.github.com/users/sdwilsh/following{/other_user}","gists_url":"https://api.github.com/users/sdwilsh/gists{/gist_id}","starred_url":"https://api.github.com/users/sdwilsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdwilsh/subscriptions","organizations_url":"https://api.github.com/users/sdwilsh/orgs","repos_url":"https://api.github.com/users/sdwilsh/repos","events_url":"https://api.github.com/users/sdwilsh/events{/privacy}","received_events_url":"https://api.github.com/users/sdwilsh/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T14:59:39Z","updated_at":"2015-05-21T14:59:39Z","body":"@dwightguth, would you be interested in addressing the merge conflicts and updating it so we can try to get this in?"}}