Re: Socket Timeouts
From: David Schwartz (davids_at_webmaster.com)
Date: Sun, 18 Sep 2005 04:34:44 -0700
"Dan N" <email@example.com> wrote in message
> On Fri, 16 Sep 2005 04:53:22 -0700, David Schwartz wrote:
>> When the
>> stack gives up, read will return -1 and errno will tell you what the
> Thanks Dave, that's the missing bit of information that I needed. It's
> not immediately obvious that a write failure causes an error on the read.
Nope, it's not immediately obvious. But if you think about it, if the
connection breaks, a 'read' cannot succeed.