From 65965a517107f16b7a51ffcfb4ec26f4dd4c3e64 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 12 Nov 2019 23:37:13 +1000 Subject: Reduce the timeout to 15 seconds. --- apt-panopticon.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apt-panopticon.lua b/apt-panopticon.lua index da0e782..a03e89b 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -309,7 +309,7 @@ checkHEAD = function (host, URL, r, retry) end IP = '--connect-to ' .. PU.host end - local cmd = 'curl -I --retry 0 -s --path-as-is --connect-timeout 30 --max-redirs 0 ' .. IP .. ' ' .. '-o /dev/null -D results/"HEADERS_' .. fname .. '" ' .. + local cmd = 'curl -I --retry 0 -s --path-as-is --connect-timeout 15 --max-redirs 0 ' .. IP .. ' ' .. '-o /dev/null -D results/"HEADERS_' .. fname .. '" ' .. hdr .. ' -w "#%{http_code} %{ssl_verify_result} %{url_effective}\\n" ' .. PU.scheme .. '://' .. host .. PU.path .. ' >>results/"STATUS_' .. fname .. '"' local rslt, status = execute(cmd) os.execute("sleep 2") -- cgit v1.1