2011/8/2 Eric Wong <normalperson / yhbt.net>:

> I only want this timeout to affect connect() time, DNS timeout can
> be separate (Feature #5100).  I don't know what to do about multiple
> IP addresses, it may be better on a case-by-case basis or until total
> time runs out.

I see.

If N IP address is obtained, N * connect_timeout seconds may be required for
timeout.

> Maybe even have an option to do a non-blocking connect() to all IPs
> simultaneously and use the first one that returns writability
> with IO.select:

Clealy, it should be optional.
-- 
Tanaka Akira