]> cat aescling's git repositories - mastodon.git/commitdiff
Increase DNS timeouts (#10238)
authorThibG <thib@sitedethib.com>
Mon, 11 Mar 2019 12:27:57 +0000 (13:27 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 11 Mar 2019 12:27:57 +0000 (13:27 +0100)
app/lib/request.rb

index ef4aeaf29018ebfab1797f8ee33a2a37b1826e19..e555ae6a109b759255f5333c801345ed64413ccf 100644 (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