Skip to contentSkip to conversation

connect() does not return ETIMEDOUT

DISCUSSION Manfred Bartz 1 participant 1 message Aug 13, 2001

lore
Share & tools
lore
#0 lore raw

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.

Is this intended behaviour?

Under Solaris I get ETIMEDOUT (Connection timed out) after a little less than 4 minutes.

Presumably I could set the socket to non-blocking and select() for writability... (I have not tested that yet.)

But if I want to keep it simple, what is the recommended solution?

Signature · 1 line
Manfred Bartz