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 E88D48D34 for ; Mon, 22 Aug 2011 16:32:34 +0000 (UTC) Received: (qmail 47700 invoked by uid 500); 22 Aug 2011 16:32:34 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 47601 invoked by uid 500); 22 Aug 2011 16:32:33 -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 47593 invoked by uid 99); 22 Aug 2011 16:32:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 16:32:33 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.216.42] (HELO mail-qw0-f42.google.com) (209.85.216.42) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 16:32:26 +0000 Received: by qwi4 with SMTP id 4so3039469qwi.15 for ; Mon, 22 Aug 2011 09:32:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.100.37 with SMTP id ev5mr2464195vdb.301.1314030724817; Mon, 22 Aug 2011 09:32:04 -0700 (PDT) Received: by 10.220.16.146 with HTTP; Mon, 22 Aug 2011 09:32:04 -0700 (PDT) In-Reply-To: References: Date: Mon, 22 Aug 2011 09:32:04 -0700 Message-ID: Subject: Re: Using MSG_NOSIGNAL on socket sends in libzookeeper_mt From: Mahadev Konar To: user@zookeeper.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Looks like we had similar issues in our tests and we ignored them in the test cases: https://issues.apache.org/jira/browse/ZOOKEEPER-482 Is this the tracking jira for SIGPIPE issue? https://issues.apache.org/jira/browse/ZOOKEEPER-1051 thanks mahadev On Mon, Aug 22, 2011 at 7:44 AM, Stephen Tyree wrote: > Right now when send is called after the cluster has closed the connection > (say on session expiration) SIGPIPE is fired for the entire application. > This seems like something we shouldn't be leaking out of the API, so a > simple fix (at least for Linux) would be to add the MSG_NOSIGNAL option to > any socket sends we do. This isn't portable to other platforms, but on other > platforms there are similar solutions to the problem. What does everyone > think? >