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 7817718FC9 for ; Fri, 3 Jul 2015 11:59:50 +0000 (UTC) Received: (qmail 32197 invoked by uid 500); 3 Jul 2015 11:59:49 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 32147 invoked by uid 500); 3 Jul 2015 11:59:49 -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 32135 invoked by uid 99); 3 Jul 2015 11:59:49 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jul 2015 11:59:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D95D0181A51 for ; Fri, 3 Jul 2015 11:59:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.894 X-Spam-Level: ** X-Spam-Status: No, score=2.894 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_EMBEDS=0.001, HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=3, HTML_OBFUSCATE_05_10=0.001, NORMAL_HTTP_TO_IP=0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id u0DlWyjt81_y for ; Fri, 3 Jul 2015 11:59:37 +0000 (UTC) Received: from nm35-vm5.bullet.mail.bf1.yahoo.com (nm35-vm5.bullet.mail.bf1.yahoo.com [72.30.238.77]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 7DB5C2095C for ; Fri, 3 Jul 2015 11:59:37 +0000 (UTC) Received: from [98.139.170.182] by nm35.bullet.mail.bf1.yahoo.com with NNFMP; 03 Jul 2015 11:58:28 -0000 Received: from [98.139.211.202] by tm25.bullet.mail.bf1.yahoo.com with NNFMP; 03 Jul 2015 11:58:27 -0000 Received: from [127.0.0.1] by smtp211.mail.bf1.yahoo.com with NNFMP; 03 Jul 2015 11:58:27 -0000 X-Yahoo-Newman-Id: 567668.21223.bm@smtp211.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: spza6qgVM1nY4YQ1dRywfzOmt3BB5pcby20mqzZCyl94Lln j9u40jGPacBoSfwYxKtnBIiP8UzvAO6HQ0PEkFHcy7nmWcY0wbsrfbCvi4IC em2unXEQn943t1xuzx064XSlt1UBx2ul5LRmOfvU__ZKYfBiUhG.Lb6sQ08x Q3lqznnaI4rvEqxGta3wuXE8vXnD3mcnDtnhv109dLrIE1k_SdSKZ3lsxLVN sa8Ke0_t7Fd_n0BYD3v_jcfjrlenvUIqUwfVowo0qsqtivPOYFizlXPZ0R3N v7WGQrgV0JYeK6J1xQvgN_aHZo3whHeYZQk6XlnLqaThZms2HDyzcYlFrTOj U2gip5m.n7bW7O8KcdimuYU_yBIdCHS5pKrj.37QHr9wHSecFpCfTnv9vgJq zG3Y0_Hk3Mzs00bqiA5QQyVGbLPnJYac3a4E0rsty5ivHa5uPNN0_hGcb9bV osSf2fvrnPeTJW_tPUXVxfqYRLWEbyqzTLknY5MXysg9QgerBb0isf1RyESf 30gJpPJ9oS3tTwQ7uz.7te2eayw-- X-Yahoo-SMTP: HT5UJDeswBACWJPOeualxAa.da..S.fl From: Flavio Junqueira Content-Type: multipart/alternative; boundary="Apple-Mail=_73F8C802-C76A-4513-9C68-258B481EC58C" Message-Id: <63A61C78-E9DB-438C-8969-0B4772AA442A@yahoo.com> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: problem with Running zookeeper C client on a virtual machine! Date: Fri, 3 Jul 2015 12:58:24 +0100 References: To: user@zookeeper.apache.org In-Reply-To: X-Mailer: Apple Mail (2.2098) --Apple-Mail=_73F8C802-C76A-4513-9C68-258B481EC58C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 It sounds right that the client shouldn't exit and generate a connection = loss event instead. But, I don't understand why you're messing up with = the system time, what is it that you're trying to achieve? -Flavio > On 03 Jul 2015, at 09:49, Wangyinwen wrote: >=20 > Hi! > =20 > I run zookeeper C client on a virtual machine=EF=BC=88zookeeper = version: 3.4.6, OS: Win7=EF=BC=89, when I roll back system time > to an earlier time(e.g. current time is 11:56:56, I change system time = to 11:56:30), the client process will print a message > "(0x4a4):ZOO_ERROR@handle_socket_error_msg@1723: = Sock et = [9.64.253.228:2181] zk retcode=3D-4, errno=3D32(Broken pipe): failed = while receiving a server response" > then client process exit. I wander to see what reason may cause ZK = client exit, > and how can I make the client process don=E2=80=99t exit but just post = a session timeout event! > =20 > =20 > Thank you! > =20 > =20 > =20 > =20 >=20 > =E7=8E=8B=E8=83=A4=E6=96=87 00171980 > 2012=E5=AE=9E=E9=AA=8C=E5=AE=A4-=E4=B8=AD=E5=A4=AE=E8=BD=AF=E4=BB=B6=E9=99= =A2-=E6=AC=A7=E6=8B=89=E4=B9=9D=E9=83=A8=EF=BC=88=E5=88=86=E5=B8=83=E5=BC=8F= =E8=BD=AF=E4=BB=B6LAB=EF=BC=89 > =E6=89=8B=E6=9C=BA=EF=BC=9A18857136398 > =E5=BA=A7=E6=9C=BA=EF=BC=9A057163024 > =E5=BA=A7=E4=BD=8D=EF=BC=9A=E6=9D=AD=E5=B7=9E=E7=A0=94=E7=A9=B6=E6=89=80= Z9-3-B35R > = =E5=88=86=E5=B8=83=E5=BC=8F=E8=BD=AF=E4=BB=B6LAB=E6=8A=80=E6=9C=AF=E6=B2=99= =E9=BE=99=EF=BC=9Ahttp://3ms.huawei.com/hi/group/2028451 = --Apple-Mail=_73F8C802-C76A-4513-9C68-258B481EC58C--