From 7ad85116ef936c44981079b16b293f10d7238763 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 22 Mar 2021 03:34:35 +0100 Subject: [PATCH] Ignore timeout when checking for HTTPS availability. --- Library/Homebrew/utils/curl.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/curl.rb b/Library/Homebrew/utils/curl.rb index f6d7cbea75..a5933f713a 100644 --- a/Library/Homebrew/utils/curl.rb +++ b/Library/Homebrew/utils/curl.rb @@ -176,9 +176,12 @@ module Utils hash_needed = false if url != secure_url user_agents.each do |user_agent| - secure_details = + secure_details = begin curl_http_content_headers_and_checksum(secure_url, specs: specs, hash_needed: true, user_agent: user_agent) + rescue Timeout::Error + next + end next unless http_status_ok?(secure_details[:status])