{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":{"state":"open","open_issues":2,"url":"https://api.github.com/repos/LearnBoost/socket.io/milestones/2","due_on":null,"description":"The 0.9 release of Socket.IO","number":2,"title":"0.9","creator":{"avatar_url":"https://secure.gravatar.com/avatar/21f4971707a00270b92e2ae791d5633d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"21f4971707a00270b92e2ae791d5633d","url":"https://api.github.com/users/3rd-Eden","login":"3rd-Eden","id":28071},"closed_issues":0,"created_at":"2011-07-17T21:38:59Z"},"user":{"avatar_url":"https://secure.gravatar.com/avatar/432261f65780d1cee1582f80642ce3a7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"432261f65780d1cee1582f80642ce3a7","url":"https://api.github.com/users/ronkorving","login":"ronkorving","id":631240},"labels":[{"name":"Feature request","color":"444444","url":"https://api.github.com/repos/LearnBoost/socket.io/labels/Feature+request"},{"name":"Planned feature","color":"02d7e1","url":"https://api.github.com/repos/LearnBoost/socket.io/labels/Planned+feature"}],"updated_at":"2011-10-31T19:02:04Z","assignee":null,"comments":3,"closed_at":null,"url":"https://api.github.com/repos/LearnBoost/socket.io/issues/191","body":"I would really appreciate a graceful shutdown function that would stop accepting new connections, but keep dealing with remaining active clients.","html_url":"https://github.com/LearnBoost/socket.io/issues/191","number":191,"title":"Graceful shutdown (feature request)","id":788178,"created_at":"2011-04-19T11:08:53Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/f2cf289fb9225e70854e2e33ed5bb6d1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f2cf289fb9225e70854e2e33ed5bb6d1","url":"https://api.github.com/users/thekiur","login":"thekiur","id":1161017},"updated_at":"2011-10-31T19:02:04Z","url":"https://api.github.com/repos/LearnBoost/socket.io/issues/comments/2581626","body":"why not something like this?\r\n\r\nprocess.on('SIGINT', function() {\r\n\tclog('Shutting down...');\r\n\tsql.end(function(){\r\n\t\tclog('Closed MySQL connection');\r\n\t\tsocket.sockets.send(JSON.stringify({\r\n\t\t\tevent : 'server-shutdown'\r\n\t\t}));\r\n\t});\r\n});","id":2581626,"created_at":"2011-10-31T19:02:04Z"}}