title: Zookeeper connection timeout issues
body: <p>We are using the 2.3.0 version of curator-framework to connect to connect to zookeeper in the pom file.</p>
  
  <pre><code> &lt;dependency&gt;
          &lt;groupId&gt;org.apache.curator&lt;/groupId&gt;
          &lt;artifactId&gt;curator-framework&lt;/artifactId&gt;
          &lt;version&gt;2.3.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.curator&lt;/groupId&gt;
          &lt;artifactId&gt;curator-recipes&lt;/artifactId&gt;
          &lt;version&gt;2.3.0&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>This is used in the highly loaded server which pumps in data to kafka lot of times and we are getting the following errors every now and then. 
  I tried googling but couldn't find the exact reason for the issue and the solution for it. Looking for ideas on how to solve this problem. </p>
  
  <pre><code>ERROR org.apache.curator.ConnectionState: Connection timed out for connection string (xxx.xx.xx.xx:2181, yy.yy.y.y:2181) and timeout (15000) / elapsed (37893)
  org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss
          at org.apache.curator.ConnectionState.checkTimeouts(ConnectionState.java:191)
          at org.apache.curator.ConnectionState.getZooKeeper(ConnectionState.java:86)
          at org.apache.curator.CuratorZookeeperClient.getZooKeeper(CuratorZookeeperClient.java:113)
          at org.apache.curator.framework.imps.CuratorFrameworkImpl.getZooKeeper(CuratorFrameworkImpl.java:456)
          at org.apache.curator.framework.imps.BackgroundSyncImpl.performBackgroundOperation(BackgroundSyncImpl.java:40)
          at org.apache.curator.framework.imps.OperationAndData.callPerformBackgroundOperation(OperationAndData.java:65)
          at org.apache.curator.framework.imps.CuratorFrameworkImpl.performBackgroundOperation(CuratorFrameworkImpl.java:672)
          at org.apache.curator.framework.imps.CuratorFrameworkImpl.backgroundOperationsLoop(CuratorFrameworkImpl.java:664)
          at org.apache.curator.framework.imps.CuratorFrameworkImpl.access$300(CuratorFrameworkImpl.java:55)
          at org.apache.curator.framework.imps.CuratorFrameworkImpl$3.call(CuratorFrameworkImpl.java:243)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
  </code></pre>