{"action":"created","issue":{"url":"https://api.github.com/repos/samuel/go-zookeeper/issues/88","labels_url":"https://api.github.com/repos/samuel/go-zookeeper/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/samuel/go-zookeeper/issues/88/comments","events_url":"https://api.github.com/repos/samuel/go-zookeeper/issues/88/events","html_url":"https://github.com/samuel/go-zookeeper/issues/88","id":109537875,"number":88,"title":"Failed ZK connection retry strategy","user":{"login":"youngkin","id":6370793,"avatar_url":"https://avatars.githubusercontent.com/u/6370793?v=3","gravatar_id":"","url":"https://api.github.com/users/youngkin","html_url":"https://github.com/youngkin","followers_url":"https://api.github.com/users/youngkin/followers","following_url":"https://api.github.com/users/youngkin/following{/other_user}","gists_url":"https://api.github.com/users/youngkin/gists{/gist_id}","starred_url":"https://api.github.com/users/youngkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youngkin/subscriptions","organizations_url":"https://api.github.com/users/youngkin/orgs","repos_url":"https://api.github.com/users/youngkin/repos","events_url":"https://api.github.com/users/youngkin/events{/privacy}","received_events_url":"https://api.github.com/users/youngkin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-02T17:45:49Z","updated_at":"2015-10-09T13:58:57Z","closed_at":null,"body":"I'm testing connection failure scenarios between ZK (3.4.6) and a client written with go-zookeeper. When I kill the ZK server go-zookeeper retries the connection to ZK, but the retry loop seems to have no limit to the number of retries.\r\n\r\n<code>2015/10/02 11:42:16 Failed to connect to ...: dial tcp ...: connection refused</code>\r\n\r\nIs there anyway to influence how many times or how long go-zookeeper will continue to retry connecting to ZK? What will go-zookeeper return to the client if it exceeds the retry limit?\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/samuel/go-zookeeper/issues/comments/146879171","html_url":"https://github.com/samuel/go-zookeeper/issues/88#issuecomment-146879171","issue_url":"https://api.github.com/repos/samuel/go-zookeeper/issues/88","id":146879171,"user":{"login":"youngkin","id":6370793,"avatar_url":"https://avatars.githubusercontent.com/u/6370793?v=3","gravatar_id":"","url":"https://api.github.com/users/youngkin","html_url":"https://github.com/youngkin","followers_url":"https://api.github.com/users/youngkin/followers","following_url":"https://api.github.com/users/youngkin/following{/other_user}","gists_url":"https://api.github.com/users/youngkin/gists{/gist_id}","starred_url":"https://api.github.com/users/youngkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youngkin/subscriptions","organizations_url":"https://api.github.com/users/youngkin/orgs","repos_url":"https://api.github.com/users/youngkin/repos","events_url":"https://api.github.com/users/youngkin/events{/privacy}","received_events_url":"https://api.github.com/users/youngkin/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T13:58:57Z","updated_at":"2015-10-09T13:58:57Z","body":"I'm curious what your thoughts are on this. If needed I'll implement the retry strategy I need in the client.\r\n\r\nThanks,\r\nRich"}}