{"action":"created","issue":{"url":"https://api.github.com/repos/alexguan/node-zookeeper-client/issues/30","labels_url":"https://api.github.com/repos/alexguan/node-zookeeper-client/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/alexguan/node-zookeeper-client/issues/30/comments","events_url":"https://api.github.com/repos/alexguan/node-zookeeper-client/issues/30/events","html_url":"https://github.com/alexguan/node-zookeeper-client/issues/30","id":50179367,"number":30,"title":"ConnectionManager infinite connect retries","user":{"login":"tekny","id":1202320,"avatar_url":"https://avatars.githubusercontent.com/u/1202320?v=3","gravatar_id":"","url":"https://api.github.com/users/tekny","html_url":"https://github.com/tekny","followers_url":"https://api.github.com/users/tekny/followers","following_url":"https://api.github.com/users/tekny/following{/other_user}","gists_url":"https://api.github.com/users/tekny/gists{/gist_id}","starred_url":"https://api.github.com/users/tekny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tekny/subscriptions","organizations_url":"https://api.github.com/users/tekny/orgs","repos_url":"https://api.github.com/users/tekny/repos","events_url":"https://api.github.com/users/tekny/events{/privacy}","received_events_url":"https://api.github.com/users/tekny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-11-26T14:02:02Z","updated_at":"2015-01-29T19:31:17Z","closed_at":null,"body":"In case server is offline, `ConnectionManager` will try to reconnect infinite times without emitting errors or any other notifying. Because of that in `node-kafka` which uses `ConnectionManager` it's impossible to handle connection errors. It also goes 100% CPU (I guess because of retries frequency) with node 10.30 OS X. It doesn't consume all the CPU on 10.33, but connection loss is still unmanageable. \r\n\r\nCan we have [those](https://github.com/alexguan/node-zookeeper-client/blob/master/lib/ConnectionManager.js#L270) errors emitted or fixed retries count or something else."},"comment":{"url":"https://api.github.com/repos/alexguan/node-zookeeper-client/issues/comments/72088360","html_url":"https://github.com/alexguan/node-zookeeper-client/issues/30#issuecomment-72088360","issue_url":"https://api.github.com/repos/alexguan/node-zookeeper-client/issues/30","id":72088360,"user":{"login":"andrewlarkin","id":1171130,"avatar_url":"https://avatars.githubusercontent.com/u/1171130?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewlarkin","html_url":"https://github.com/andrewlarkin","followers_url":"https://api.github.com/users/andrewlarkin/followers","following_url":"https://api.github.com/users/andrewlarkin/following{/other_user}","gists_url":"https://api.github.com/users/andrewlarkin/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewlarkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewlarkin/subscriptions","organizations_url":"https://api.github.com/users/andrewlarkin/orgs","repos_url":"https://api.github.com/users/andrewlarkin/repos","events_url":"https://api.github.com/users/andrewlarkin/events{/privacy}","received_events_url":"https://api.github.com/users/andrewlarkin/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T19:31:17Z","updated_at":"2015-01-29T19:31:17Z","body":"+1 as well."}}