From: Tanaka Akira Date: 2011-08-02T07:04:02+09:00 Subject: [ruby-core:38665] Re: [Ruby 1.9 - Feature #5101][Open] allow optional timeout for TCPSocket.new 2011/8/2 Eric Wong : > 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