Re: connect() does not return ETIMEDOUT

Andi Kleen (ak@suse.de)
13 Aug 2001 18:15:06 +0200


Manfred Bartz <mbartz@optushome.com.au> writes:

> When a TCP client opens multiple connections beyond the server's
> backlog capacity, the call to connect() returns a value of zero
> (success) after 9 seconds. Toggling SYN-cookies makes no difference.

It works correct here (2.4.7-something)

# ipchains -A input -j DENY -p tcp --dport 10000
# strace -e connect telnet localhost 10000
...
connect(3, {sin_family=AF_INET, sin_port=htons(10000), sin_addr=inet_addr("127.0.0.1")}}, 16) = -1 ETIMEDOUT (Connection timed out)

If you think something is wrong you should probably send a strace that
shows it.

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