From owner-freebsd-hackers Thu Jun 7 9:16:53 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from monty.mutatus.co.uk (monty.mutatus.co.uk [195.184.238.178]) by hub.freebsd.org (Postfix) with ESMTP id 8CB4337B406 for ; Thu, 7 Jun 2001 09:16:50 -0700 (PDT) (envelope-from gbarr@mutatus.co.uk) Received: (from gbarr@localhost) by monty.mutatus.co.uk (8.11.3/8.11.3) id f57GF1R03492; Thu, 7 Jun 2001 17:15:01 +0100 (BST) (envelope-from gbarr) Date: Thu, 7 Jun 2001 17:15:01 +0100 From: Graham Barr To: freebsd-hackers@freebsd.org Subject: read(2) and ETIMEDOUT Message-ID: <20010607171501.S50444@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 A while ago our systems were upgraded from 4.2 to 4.3-RC, and at this time we started seeing problems that I am having a difficult time tracking down. We have a server process which is connected to by many other machines, each of them streams data in via tcp/ip. These connections are pretty much permanent. All had been running fine for a long time before the upgrade, but now we have a problem with read(2) returning an error ETIMEDOUT, which causes our code to close the connection. The strange thing is that things are fine for a few hours, then all of a sudden we see each of the connections fail with this error. Then after the clients have reconnected, all is fine for a few hours and then they all do it again. The problem I am having in tracking this down is that man 2 read does not specify ETIMEDOUT as an error that can be returned from read(2) and man errno specifies that it would be returned from connect(2) or send(2) So, here is my question. Does anyone know under what circumstance ETIMEDOUT may be returned from read(2) or is this a potential bug somewhere ? Thanks, Graham. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message