about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-03-11 13:27:57 +0100
committerEugen Rochko <eugen@zeonfederated.com>2019-03-11 13:27:57 +0100
commit79b00d294d5098e530640f271d0b30dfb9bde9be (patch)
treedccb7581f1878e7d29a847a9716fed61f9537413 /app/lib
parent13a7f05030cdcbab24aeb25944a9a430238dbff1 (diff)
Increase DNS timeouts (#10238)
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/request.rb b/app/lib/request.rb
index ef4aeaf29..e555ae6a1 100644
--- a/app/lib/request.rb
+++ b/app/lib/request.rb
@@ -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