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 75B17107D0 for ; Tue, 25 Mar 2014 12:53:24 +0000 (UTC) Received: (qmail 67210 invoked by uid 500); 25 Mar 2014 12:53:23 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 66516 invoked by uid 500); 25 Mar 2014 12:53:18 -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 66507 invoked by uid 99); 25 Mar 2014 12:53:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2014 12:53:17 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kuebzky@gmail.com designates 209.85.216.174 as permitted sender) Received: from [209.85.216.174] (HELO mail-qc0-f174.google.com) (209.85.216.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2014 12:53:11 +0000 Received: by mail-qc0-f174.google.com with SMTP id c9so422578qcz.5 for ; Tue, 25 Mar 2014 05:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ZUqd92CnZcfbs/tQzkLRNmfexK8SJmZp232mhesTePo=; b=y8O+CqNDKzwWwLB6wML/VRzD0VScUOp9Mwoh4n2P3HXlKB9HEzaAm2YZfig8MSx0RK rtjy6jEvunrvlS+vbzxbnL6LX5UVXijjo4VYJf1jRw+BGPB25pyu+5TOhbtnjwYLpRF5 p0PU+Xa3a+9W3EMo7xDu7hFgMDd152cwcIk9+WrdEQjB7TsM2lGO4lGiqso1OWYFwmdg y22lnWlcGTnhqGdHSJ7KyVQrKaOrzz2oWNl1m2K9lLx7/Pd22y+8EtDnl4IAiVQMZaKS /qpM9WzFNeYrnrfRvSJh39PWk+oI/Bx+tMWxY1KZ9wi4WGNgVzhvAbqgGhZQdrnOZEHu tOMw== MIME-Version: 1.0 X-Received: by 10.140.32.37 with SMTP id g34mr56328323qgg.37.1395751970367; Tue, 25 Mar 2014 05:52:50 -0700 (PDT) Received: by 10.140.105.73 with HTTP; Tue, 25 Mar 2014 05:52:50 -0700 (PDT) Date: Tue, 25 Mar 2014 13:52:50 +0100 Message-ID: Subject: C client state goes to 0 - should it? From: Kuba Lekstan To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a1139717a636e3204f56dd4d1 X-Virus-Checked: Checked by ClamAV on apache.org --001a1139717a636e3204f56dd4d1 Content-Type: text/plain; charset=ISO-8859-1 Hello, In destroy (zookeeper.c:401) and handle_error (zookeeper:1236) functions the state property of zhandle_t is set to 0. Looking at zookeeper.h the zoo_state should return one of the State constants, but none of this constants is not equal to 0. So my question is why it is set to 0 and why not to any other declared constant? In my opinion it should be set to to NOTCONNECTED_STATE_DEF but unfortunately this is not exported in zookeeper.h. What do you think about this? Sorry if this is not a correct mailing list. Thanks. --001a1139717a636e3204f56dd4d1--