mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-11 18:22:53 -05:00
Increase DNS timeouts (#10238)
This commit is contained in:
parent
13a7f05030
commit
79b00d294d
@ -171,7 +171,7 @@ class Request
|
|||||||
outer_e = nil
|
outer_e = nil
|
||||||
|
|
||||||
Resolv::DNS.open do |dns|
|
Resolv::DNS.open do |dns|
|
||||||
dns.timeouts = 1
|
dns.timeouts = 5
|
||||||
|
|
||||||
addresses = dns.getaddresses(host).take(2)
|
addresses = dns.getaddresses(host).take(2)
|
||||||
time_slot = 10.0 / addresses.size
|
time_slot = 10.0 / addresses.size
|
||||||
|
Loading…
x
Reference in New Issue
Block a user