Set a timeout on HTTP requests made by the server

This commit is contained in:
Tom Hughes 2022-05-29 10:54:39 +01:00
parent 9d8bbc926c
commit eea25bd154

View file

@ -520,7 +520,7 @@ module OSM
# Return the HTTP client to use # Return the HTTP client to use
def self.http_client def self.http_client
@http_client ||= Faraday.new @http_client ||= Faraday.new(:request => { :timeout => 15 })
end end
# Return the MaxMindDB database handle # Return the MaxMindDB database handle