Re: Weirdness with AF_INET listen() backlog [2.4.18]

Alan Cox (alan@lxorguk.ukuu.org.uk)
30 Jul 2002 18:18:51 +0100


On Tue, 2002-07-30 at 16:31, Michael Kerrisk wrote:
> > If you expect
> >the server to say something you'll see the timeout there instead of
> >seeing it on the connect.
>
> Sorry, I don't quite understand this last sentence! Can you elaborate?

If your client current does

connect
if timedout error
read
if timedout error

then it will fail on the read, and since the code should already handle
that case will work out fine

> >Since a timeout on the data can happen in the real world Im sure your
> >code already correctly handles this case ;)
>
> You mean on a send() or write(), right?

If the client writes first then it may well not fail until the read
after the write

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/