From eea25bd1546a42b783ffffb4d0c794d59e643597 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 29 May 2022 10:54:39 +0100 Subject: [PATCH] Set a timeout on HTTP requests made by the server --- lib/osm.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/osm.rb b/lib/osm.rb index 73513c3ad..4241ad700 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -520,7 +520,7 @@ module OSM # Return the HTTP client to use def self.http_client - @http_client ||= Faraday.new + @http_client ||= Faraday.new(:request => { :timeout => 15 }) end # Return the MaxMindDB database handle -- 2.39.5