From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16789 invoked by alias); 28 Oct 2009 18:33:54 -0000 Received: (qmail 16778 invoked by uid 22791); 28 Oct 2009 18:33:54 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Oct 2009 18:33:50 +0000 Received: from list by lo.gmane.org with local (Exim 4.50) id 1N3DL8-0003lk-Uu for ecos-discuss@sources.redhat.com; Wed, 28 Oct 2009 19:33:46 +0100 Received: from mn-69-34-67-62.sta.embarqhsd.net ([69.34.67.62]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Oct 2009 19:33:46 +0100 Received: from grant.b.edwards by mn-69-34-67-62.sta.embarqhsd.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Oct 2009 19:33:46 +0100 To: ecos-discuss@sources.redhat.com From: Grant Edwards Date: Wed, 28 Oct 2009 18:33:00 -0000 Message-ID: References: <9EFFCEC257D2B649BCD6495F5C704AA9090C479E@sr-fre-exch01.smartm.internal> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: slrn/pre0.9.9-102 (Linux) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Re: What causes interrupted network system calls? X-SW-Source: 2009-10/txt/msg00178.txt.bz2 On 2009-10-28, Grant Edwards wrote: > On 2009-10-28, Nick Garnett wrote: >> Grant Edwards writes: >> >>> 1) in the same situation we never saw EINTR with the previous >>> network stack. >> >> It is probable that the OpenBSD stack totally ignored signals >> and therefore wouldn't necessarily do the right thing. The >> FreeBSD stack is better integrated with POSIX support. > > We're not using POSIX support. We do have CYGPKG_LIBC_SIGNALS (it comes in with one of the network templates), but nobody ever calls raise(), and I'm pretty sure nobody ever calls signal() either. We're getting pretty good results with retrying the send() once, and if it fails a second time then closing and reopening the connection. Just retrying doesn't seem to help. Our copy of the network stack is mostly a few years old, so I'm going to see if I can build with a current snapshot of the FreeBSD net package. -- Grant Edwards grante Yow! Uh-oh!! I'm having at TOO MUCH FUN!! visi.com -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss