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

Alan Cox (alan@lxorguk.ukuu.org.uk)
30 Jul 2002 16:59:22 +0100


On Tue, 2002-07-30 at 15:35, Michael Kerrisk wrote:
> I had expected that if a server creates a listening socket, but does not
> accept() the incoming connections, then after the (possibly fudge-factored)
> Is this all expected behaviour? If so, is there a way of getting Linux to
> behave more like other implementations here? (As a wild shot I tried setting
> /proc/sys/net/ipv4/tcp_syncookies to 0, but this made no apparent
> difference.)

The world of tcp synflooding changed how stacks handle this sort of
stuff forever. Welcome to the new world order 8)

You will get connections completing, they will time out. If you expect
the server to say something you'll see the timeout there instead of
seeing it on the connect.

Since a timeout on the data can happen in the real world Im sure your
code already correctly handles this case ;)

-
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/