mirror of
https://github.com/gosticks/brew.git
synced 2026-10-06 15:36:59 +00:00
Revert "Revert "Merge pull request #10898 from reitermarkus/audit-timeout""
This reverts commit 0b8a9bc1a1.
This commit is contained in:
@@ -85,7 +85,7 @@ module Utils
|
||||
|
||||
return result if result.success? || !args.exclude?("--http1.1")
|
||||
|
||||
raise Timeout::Error, result.stderr.chomp if result.status.exitstatus == 28
|
||||
raise Timeout::Error, result.stderr.lines.last.chomp if timeout && result.status.exitstatus == 28
|
||||
|
||||
# Error in the HTTP2 framing layer
|
||||
if result.status.exitstatus == 16
|
||||
@@ -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])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user