Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6DA9D18AB3 for ; Tue, 18 Aug 2015 23:07:22 +0000 (UTC) Received: (qmail 60057 invoked by uid 500); 18 Aug 2015 23:07:21 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 60005 invoked by uid 500); 18 Aug 2015 23:07:21 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 59994 invoked by uid 99); 18 Aug 2015 23:07:21 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2015 23:07:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 02CA9C0BCF for ; Tue, 18 Aug 2015 23:07:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.998 X-Spam-Level: ** X-Spam-Status: No, score=2.998 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id p7RZKSaWMnyb for ; Tue, 18 Aug 2015 23:07:20 +0000 (UTC) Received: from mail-yk0-f175.google.com (mail-yk0-f175.google.com [209.85.160.175]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id C25CD20757 for ; Tue, 18 Aug 2015 23:07:19 +0000 (UTC) Received: by ykll84 with SMTP id l84so110987203ykl.0 for ; Tue, 18 Aug 2015 16:07:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=FbwJerxlgSKkmn2rJ/BPNnfffjz9E111krCxgnsIEXI=; b=MQoi3GjmQqUY8YBzlydicOnAmYvZxUoPo6tqCl4zfQL0WdAuf0qBVXmC/VaS79lr/n aNEZc+0iWgWNo3qakFotRBgIWKhsHfCWBX7H+xgU8ArGT5jgFIX8IyD3AOJauAa4jnjx H9Ktcj4q10ev2dlZ6crCX/XwOBMOyAjd3gfTwM8rVaVKT0dPJQQqpV006cezfnAGN9g3 zuqbeiHZ8nd+FWY75SM3xRDGnoOxyLiVgZS+9RlBzrS6cksq6UESODFJj6LkRM0MmZkS Z9Qy6fE5hIOOEtjT/C0akjFvtneGQnoRRleUgVnP/VyN8fkXpdbyLIsJ78l05xuJUmvD quOQ== X-Gm-Message-State: ALoCoQn+IJDvkIUAeaSGEGL83GEkVHfvpKP+uo5yGr02/+C9JzILnDwIe0nnGirfC3WsZcjZQoBl MIME-Version: 1.0 X-Received: by 10.170.77.197 with SMTP id t188mr10431545ykt.78.1439939233318; Tue, 18 Aug 2015 16:07:13 -0700 (PDT) Received: by 10.37.8.67 with HTTP; Tue, 18 Aug 2015 16:07:13 -0700 (PDT) Date: Tue, 18 Aug 2015 16:07:13 -0700 Message-ID: Subject: zookeeper c client taking long time to reconnect From: Deepak Jagtap To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a113a8c36803eaf051d9dfa65 --001a113a8c36803eaf051d9dfa65 Content-Type: text/plain; charset=UTF-8 Hi Guys, I am using zookeeper latest trunk in my deployments and using c client library. Zookeeper client is using receive timeout of 5 seconds, but if one of the zookeeper server dies some times it takes more than 5 seconds to reconnect to another zk server. Since application is latency sensitive, do we have some threshold setting to limit reconnect time? Can it be changed inside zookeeper client source? How does receive_timeout play role in zookeeper_init2() function? Thanks & Regards, Deepak --001a113a8c36803eaf051d9dfa65--