lib/httpx/resolver/system.rb in httpx-0.10.2 vs lib/httpx/resolver/system.rb in httpx-0.11.0
- old
+ new
@@ -18,10 +18,10 @@
@state = :idle
resolv_options = @resolver_options.dup
timeouts = resolv_options.delete(:timeouts)
resolv_options.delete(:cache)
@resolver = Resolv::DNS.new(resolv_options.empty? ? nil : resolv_options)
- @resolver.timeouts = timeouts if timeouts
+ @resolver.timeouts = timeouts || Resolver::RESOLVE_TIMEOUT
end
def closed?
true
end