From owner-freebsd-hackers Fri Jun 8 12:38:39 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 26F1A37B401 for ; Fri, 8 Jun 2001 12:38:34 -0700 (PDT) (envelope-from ticso@mail.cicely.de) Received: from mail.cicely.de (cicely20 [10.1.1.22]) by srv1.cosmo-project.de (8.11.0/8.11.0) with ESMTP id f58JcU677055; Fri, 8 Jun 2001 21:38:30 +0200 (CEST) Received: (from ticso@localhost) by mail.cicely.de (8.11.0/8.11.0) id f58JdG227807; Fri, 8 Jun 2001 21:39:16 +0200 (CEST) Date: Fri, 8 Jun 2001 21:39:15 +0200 From: Bernd Walter To: Matt Dillon Cc: Graham Barr , freebsd-hackers@FreeBSD.ORG Subject: Re: read(2) and ETIMEDOUT Message-ID: <20010608213915.A27537@cicely20.cicely.de> References: <20010607171501.S50444@pobox.com> <200106071653.f57Grsn73369@earth.backplane.com> <20010607180011.U50444@pobox.com> <200106071733.f57HXov74249@earth.backplane.com> <20010607183535.X50444@pobox.com> <200106072220.f57MKwv78170@earth.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200106072220.f57MKwv78170@earth.backplane.com>; from dillon@earth.backplane.com on Thu, Jun 07, 2001 at 03:20:58PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jun 07, 2001 at 03:20:58PM -0700, Matt Dillon wrote: > > : > :On Thu, Jun 07, 2001 at 10:33:50AM -0700, Matt Dillon wrote: > :> > :> : > :> :Thanks, I will try setting errno, but I don't think it is signals. > :> :I have been running truss on the process. The relevant part is > :> : > :> :gettimeofday(0xbfbffa54,0x0) = 0 (0x0) > :> :select(0x50,0x93f8c90,0x0,0x0,0xbfbffa74) = 3 (0x3) > :> :read(0x16,0xa2da000,0x8000) ERR#60 'Operation timed out' > :> : > :> :In fact there are no signals in the whole truss output > :> : > :> :Graham. > :> > :> What type of descriptor is the read being performed on? A TCP > :> connection or, say, a reading a file over NFS? > : > :It is a TCP/IP connection. > : > :Graham. > > You can get this if the TCP connection times out, either through a > keepalive timeout or the protocol hits the maximum number of transmit > retries. I'd have to delve into the cvs logs to see when it was added, > but it seems reasonable. You should treat it simply as an EIO or > something like that. Keepalives are a good point. I know of OS/2 Systems that can't handle them and behave the way you describe. What system is on the other side? -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message