diff options
| author | JCount | 2017-03-13 18:11:33 -0400 |
|---|---|---|
| committer | JCount | 2017-03-16 17:37:22 -0400 |
| commit | 5e8a9fa3f36023c0c8bf37730020dbf6e293581b (patch) | |
| tree | 49b1571571ccb94036af2d71f80fd0b11d9ac4c4 /docs/Formula-Cookbook.md | |
| parent | b7e7b5b5c9eb2b4282fb1913fc59d85f9e1ac140 (diff) | |
| download | brew-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/Formula-Cookbook.md')
0 files changed, 0 insertions, 0 deletions
