Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2001 17:15:01 +0100
From:      Graham Barr <gbarr@pobox.com>
To:        freebsd-hackers@freebsd.org
Subject:   read(2) and ETIMEDOUT
Message-ID:  <20010607171501.S50444@pobox.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010607171501.S50444>