{"action":"created","issue":{"url":"https://api.github.com/repos/karma-runner/karma/issues/598","labels_url":"https://api.github.com/repos/karma-runner/karma/issues/598/labels{/name}","comments_url":"https://api.github.com/repos/karma-runner/karma/issues/598/comments","events_url":"https://api.github.com/repos/karma-runner/karma/issues/598/events","html_url":"https://github.com/karma-runner/karma/issues/598","id":15980488,"number":598,"title":"random DISCONNECTED messages from PhantomJS","user":{"login":"ibawt","id":1743173,"avatar_url":"https://avatars.githubusercontent.com/u/1743173?v=3","gravatar_id":"","url":"https://api.github.com/users/ibawt","html_url":"https://github.com/ibawt","followers_url":"https://api.github.com/users/ibawt/followers","following_url":"https://api.github.com/users/ibawt/following{/other_user}","gists_url":"https://api.github.com/users/ibawt/gists{/gist_id}","starred_url":"https://api.github.com/users/ibawt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibawt/subscriptions","organizations_url":"https://api.github.com/users/ibawt/orgs","repos_url":"https://api.github.com/users/ibawt/repos","events_url":"https://api.github.com/users/ibawt/events{/privacy}","received_events_url":"https://api.github.com/users/ibawt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2013-06-25T14:19:59Z","updated_at":"2015-03-04T06:51:41Z","closed_at":null,"body":"Hi,\r\n  Karma: 0.8.6\r\n  PhantomJS: 1.9\r\n  Node: v0.10.2, v0.10.7\r\n\r\n  I'm seeing random disconnect messages in single run mode.  Is this a known problem?  I tried monkey patching the socket.io transports to only do xhr and jsonp but it still happens.  Any ideas?"},"comment":{"url":"https://api.github.com/repos/karma-runner/karma/issues/comments/77105719","html_url":"https://github.com/karma-runner/karma/issues/598#issuecomment-77105719","issue_url":"https://api.github.com/repos/karma-runner/karma/issues/598","id":77105719,"user":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T06:51:41Z","updated_at":"2015-03-04T06:51:41Z","body":"Adding the following lines to my karma config solved the problem for me:\r\n\r\n```diff\r\n     // If browser does not capture in given timeout [ms], kill it\r\n     captureTimeout: 60000,\r\n\r\n+    // to avoid DISCONNECTED messages\r\n+    browserDisconnectTimeout : 10000, // default 2000\r\n+    browserDisconnectTolerance : 1, // default 0\r\n+    browserNoActivityTimeout : 60000, //default 10000\r\n```\r\n\r\nSource: webpack/karma-webpack#8"}}