1
0
Fork 0
forked from fedi/mastodon

Increase DNS timeouts (#10238)

This commit is contained in:
ThibG 2019-03-11 13:27:57 +01:00 committed by Eugen Rochko
parent 13a7f05030
commit 79b00d294d

View file

@ -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