Return-Path: X-Original-To: apmail-curator-dev-archive@minotaur.apache.org Delivered-To: apmail-curator-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B679A11155 for ; Thu, 31 Jul 2014 08:01:42 +0000 (UTC) Received: (qmail 66860 invoked by uid 500); 31 Jul 2014 08:01:42 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 66815 invoked by uid 500); 31 Jul 2014 08:01:42 -0000 Mailing-List: contact dev-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list dev@curator.apache.org Received: (qmail 66802 invoked by uid 99); 31 Jul 2014 08:01:42 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jul 2014 08:01:42 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 1A5C19BB319; Thu, 31 Jul 2014 08:01:42 +0000 (UTC) From: tiny657 To: dev@curator.apache.org Reply-To: dev@curator.apache.org Message-ID: Subject: [GitHub] curator pull request: fixed not to try to reconnect when session a... Content-Type: text/plain Date: Thu, 31 Jul 2014 08:01:42 +0000 (UTC) GitHub user tiny657 opened a pull request: https://github.com/apache/curator/pull/27 fixed not to try to reconnect when session and connection timeout. This example is working fine when network is not available. e.g. RetryPolicy retryPolicy = new ExponentialBackoffRetry(Config.BASE_SLEEP_TIME_MS, 3); CuratorFrameworkFactory.newClient(connectString, 20000, 10000, retryPolicy); But this example is not working when network is not available. e.g. RetryPolicy retryPolicy = new ExponentialBackoffRetry(Config.BASE_SLEEP_TIME_MS, 3); zkClient = CuratorFrameworkFactory.newClient(connectString, 10000, 10000, retryPolicy); The application didn't receive any zookeeper event after this reset() method is invoked. You can merge this pull request into a Git repository by running: $ git pull https://github.com/tiny657/curator fixReconnection Alternatively you can review and apply these changes as the patch at: https://github.com/apache/curator/pull/27.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #27 ---- commit fe95e2c9a98d51c7b176d72754cc36270a471df6 Author: Youngwan Lim Date: 2014-07-31T07:47:47Z fixed not to try to reconnect when session and connection timeout. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---