apache/curator — pull request #27 by tiny657 (2014-07-31 08:01:40+00:00)
Title: 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.