From 79b00d294d5098e530640f271d0b30dfb9bde9be Mon Sep 17 00:00:00 2001 From: ThibG Date: Mon, 11 Mar 2019 13:27:57 +0100 Subject: [PATCH] Increase DNS timeouts (#10238) --- app/lib/request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/request.rb b/app/lib/request.rb index ef4aeaf290..e555ae6a10 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