aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticon.lua
diff options
context:
space:
mode:
authoronefang2019-11-12 23:37:13 +1000
committeronefang2019-11-12 23:37:13 +1000
commit65965a517107f16b7a51ffcfb4ec26f4dd4c3e64 (patch)
tree4f6eb19c8318c0ca72cecf598f39821a7ac1eba9 /apt-panopticon.lua
parentHide the cat and rm errors, though we probably should log them instead. (diff)
downloadapt-panopticon-65965a517107f16b7a51ffcfb4ec26f4dd4c3e64.zip
apt-panopticon-65965a517107f16b7a51ffcfb4ec26f4dd4c3e64.tar.gz
apt-panopticon-65965a517107f16b7a51ffcfb4ec26f4dd4c3e64.tar.bz2
apt-panopticon-65965a517107f16b7a51ffcfb4ec26f4dd4c3e64.tar.xz
Reduce the timeout to 15 seconds.
Diffstat (limited to 'apt-panopticon.lua')
-rwxr-xr-xapt-panopticon.lua2
1 files changed, 1 insertions, 1 deletions
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)
309 end 309 end
310 IP = '--connect-to ' .. PU.host 310 IP = '--connect-to ' .. PU.host
311 end 311 end
312 local cmd = 'curl -I --retry 0 -s --path-as-is --connect-timeout 30 --max-redirs 0 ' .. IP .. ' ' .. '-o /dev/null -D results/"HEADERS_' .. fname .. '" ' .. 312 local cmd = 'curl -I --retry 0 -s --path-as-is --connect-timeout 15 --max-redirs 0 ' .. IP .. ' ' .. '-o /dev/null -D results/"HEADERS_' .. fname .. '" ' ..
313 hdr .. ' -w "#%{http_code} %{ssl_verify_result} %{url_effective}\\n" ' .. PU.scheme .. '://' .. host .. PU.path .. ' >>results/"STATUS_' .. fname .. '"' 313 hdr .. ' -w "#%{http_code} %{ssl_verify_result} %{url_effective}\\n" ' .. PU.scheme .. '://' .. host .. PU.path .. ' >>results/"STATUS_' .. fname .. '"'
314 local rslt, status = execute(cmd) 314 local rslt, status = execute(cmd)
315 os.execute("sleep 2") 315 os.execute("sleep 2")