Increase DNS timeouts (#10238)
parent
5bc62cee47
commit
154c8a0302
|
@ -171,7 +171,7 @@ class Request
|
|||
outer_e = nil
|
||||
|
||||
Resolv::DNS.open do |dns|
|
||||
dns.timeouts = 1
|
||||
dns.timeouts = 5
|
||||
|
||||
addresses = dns.getaddresses(host).take(2)
|
||||
time_slot = 10.0 / addresses.size
|
||||
|
|
Loading…
Reference in New Issue