{"action":"created","issue":{"url":"https://api.github.com/repos/rancherio/rancher/issues/1199","labels_url":"https://api.github.com/repos/rancherio/rancher/issues/1199/labels{/name}","comments_url":"https://api.github.com/repos/rancherio/rancher/issues/1199/comments","events_url":"https://api.github.com/repos/rancherio/rancher/issues/1199/events","html_url":"https://github.com/rancherio/rancher/issues/1199","id":87826203,"number":1199,"title":"When editing host, stats continue to run after I leave edit screen","user":{"login":"tfiduccia","id":11514927,"avatar_url":"https://avatars.githubusercontent.com/u/11514927?v=3","gravatar_id":"","url":"https://api.github.com/users/tfiduccia","html_url":"https://github.com/tfiduccia","followers_url":"https://api.github.com/users/tfiduccia/followers","following_url":"https://api.github.com/users/tfiduccia/following{/other_user}","gists_url":"https://api.github.com/users/tfiduccia/gists{/gist_id}","starred_url":"https://api.github.com/users/tfiduccia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfiduccia/subscriptions","organizations_url":"https://api.github.com/users/tfiduccia/orgs","repos_url":"https://api.github.com/users/tfiduccia/repos","events_url":"https://api.github.com/users/tfiduccia/events{/privacy}","received_events_url":"https://api.github.com/users/tfiduccia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rancherio/rancher/labels/area/host","name":"area/host","color":"FBCA04"},{"url":"https://api.github.com/repos/rancherio/rancher/labels/area/ui","name":"area/ui","color":"FfeA44"},{"url":"https://api.github.com/repos/rancherio/rancher/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rancherio/rancher/milestones/25","html_url":"https://github.com/rancherio/rancher/milestones/Release%201.0%20Beta","labels_url":"https://api.github.com/repos/rancherio/rancher/milestones/25/labels","id":1134764,"number":25,"title":"Release 1.0 Beta","description":"","creator":{"login":"will-chan","id":10134676,"avatar_url":"https://avatars.githubusercontent.com/u/10134676?v=3","gravatar_id":"","url":"https://api.github.com/users/will-chan","html_url":"https://github.com/will-chan","followers_url":"https://api.github.com/users/will-chan/followers","following_url":"https://api.github.com/users/will-chan/following{/other_user}","gists_url":"https://api.github.com/users/will-chan/gists{/gist_id}","starred_url":"https://api.github.com/users/will-chan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-chan/subscriptions","organizations_url":"https://api.github.com/users/will-chan/orgs","repos_url":"https://api.github.com/users/will-chan/repos","events_url":"https://api.github.com/users/will-chan/events{/privacy}","received_events_url":"https://api.github.com/users/will-chan/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":177,"state":"open","created_at":"2015-05-26T21:14:50Z","updated_at":"2015-06-14T03:54:54Z","due_on":"2015-06-13T07:00:00Z","closed_at":null},"comments":1,"created_at":"2015-06-12T19:24:03Z","updated_at":"2015-06-14T03:54:55Z","closed_at":null,"body":"Steps:\r\n1.  Create an EC2 machine\r\n2.  Edit EC2 machine\r\n3.  Save edits\r\n\r\nResults\r\nStats continue to run in the background and it created three websocket calls that seem to continue to run, even if I leave host page.\r\n\r\nExpected:\r\nStats shouldn't run at all for edit?  At the very least they should stop when I leave edit screen."},"comment":{"url":"https://api.github.com/repos/rancherio/rancher/issues/comments/111778242","html_url":"https://github.com/rancherio/rancher/issues/1199#issuecomment-111778242","issue_url":"https://api.github.com/repos/rancherio/rancher/issues/1199","id":111778242,"user":{"login":"vincent99","id":753917,"avatar_url":"https://avatars.githubusercontent.com/u/753917?v=3","gravatar_id":"","url":"https://api.github.com/users/vincent99","html_url":"https://github.com/vincent99","followers_url":"https://api.github.com/users/vincent99/followers","following_url":"https://api.github.com/users/vincent99/following{/other_user}","gists_url":"https://api.github.com/users/vincent99/gists{/gist_id}","starred_url":"https://api.github.com/users/vincent99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincent99/subscriptions","organizations_url":"https://api.github.com/users/vincent99/orgs","repos_url":"https://api.github.com/users/vincent99/repos","events_url":"https://api.github.com/users/vincent99/events{/privacy}","received_events_url":"https://api.github.com/users/vincent99/received_events","type":"User","site_admin":false},"created_at":"2015-06-14T03:54:55Z","updated_at":"2015-06-14T03:54:55Z","body":"The old host-api does not appear to have closed websockets properly.  The new proxy one does close, so this might have solved itself.\r\n\r\nI also went through all the socket client code and made some changes to prevent messages from coming through after a socket was supposed to be closed.\r\n\r\nAnd I changed the \"subscribe\" socket (the one that keeps everything in the UI up to date, not for the graphs) to watch the \"ping\" messages and re-connect if it doesn't see a ping for 11 seconds (when it should have gotten 2 by then)."}}