From 9c5ff7cdd38e1b7218421f9a6e1ecea810edcfd4 Mon Sep 17 00:00:00 2001 From: onefang Date: Wed, 11 Dec 2019 02:56:51 +1000 Subject: Detect timeouts for actually downloaded files as well. --- apt-panopticon.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apt-panopticon.lua') diff --git a/apt-panopticon.lua b/apt-panopticon.lua index dd0ad58..2c0b86e 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -805,6 +805,10 @@ if 0 < #arg then if crrnt < min and crrnt ~= 0 then min = crrnt end if crrnt > max then max = crrnt end end + if l:find('timed out') ~= nil then + E(" TIMEOUT " .. timeouts + 1 .. ', details in curl-' .. mt .. '-' .. pu.host .. '.log', 'http', '', pu.host) + timeouts = timeouts + 1 + end end end end -- cgit v1.1