Project

General

Profile

Bug #911 ยป fix_resolv_timeout.patch

febuiles (Federico Builes), 12/23/2008 10:30 AM

View differences:

lib/resolv.rb (working copy)
while (now = Time.now) < timelimit
timeout = timelimit - now
if !IO.select([@sock], nil, nil, timeout)
raise ResolvTimeout
raise ResolvTimeout, "timed out while resolving the address"
end
reply, from = recv_reply
begin
    (1-1/1)