aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJCount2017-03-13 18:11:33 -0400
committerJCount2017-03-16 17:37:22 -0400
commit5e8a9fa3f36023c0c8bf37730020dbf6e293581b (patch)
tree49b1571571ccb94036af2d71f80fd0b11d9ac4c4 /docs
parentb7e7b5b5c9eb2b4282fb1913fc59d85f9e1ac140 (diff)
downloadbrew-5e8a9fa3f36023c0c8bf37730020dbf6e293581b.tar.bz2
audit: online - limit download time based on HTTPS determination
Previously, the http_content_headers_and_checksum method always downloaded the entire url, including headers. These downloads periodically hang, outputting false positives or wreaking havoc on the CI. Therefore, use curl's --max-time arg to prevent this by setting a hard limit of 600 seconds when the entire file is going to be used to detect whether the url can be changed to use the HTTPS protocol instead of HTTP. Otherwise, if the url already is HTTPS, limit the download time to 25 seconds since only the headers, not contents, matter.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions