diff --git a/Library/Homebrew/api.rb b/Library/Homebrew/api.rb index 2af1e7d7af..3abe1310a1 100644 --- a/Library/Homebrew/api.rb +++ b/Library/Homebrew/api.rb @@ -20,7 +20,7 @@ module Homebrew HOMEBREW_CACHE_API = (HOMEBREW_CACHE/"api").freeze # Set a longer timeout just for large(r) files. - JSON_API_MAX_TIME = 10 + JSON_API_MAX_TIME = 30 sig { params(endpoint: String).returns(Hash) } def fetch(endpoint) diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index 513dabf95e..0eb9a28ddc 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -787,7 +787,7 @@ EOS do curl \ "${CURL_DISABLE_CURLRC_ARGS[@]}" \ - --fail --compressed --silent --max-time 10 \ + --fail --compressed --silent --max-time 30 \ --location --remote-time --output "${HOMEBREW_CACHE}/api/${formula_or_cask}.json" \ --time-cond "${HOMEBREW_CACHE}/api/${formula_or_cask}.json" \ --user-agent "${HOMEBREW_USER_AGENT_CURL}" \