From ff4ff768499579065a311df745fccc3f3163a333 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 5 Nov 2019 00:09:36 +1000 Subject: TODO minor tweaks. --- mirror-checker.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mirror-checker.lua') diff --git a/mirror-checker.lua b/mirror-checker.lua index 3da8bc6..aea816e 100755 --- a/mirror-checker.lua +++ b/mirror-checker.lua @@ -258,7 +258,6 @@ checkHEAD = function (host, URL, r, retry) if nil == p then E(" " .. c .. " " .. s .. "! " .. check .. " " .. host .. " -> " .. URL, PU.scheme, host) -- So far the only errors are "timeout", "Network is unreachable", and "closed", and I suspect "closed" is due to saturating my bandwidth. - -- Might be worthwhile retrying those, some number of times. if "timeout" == c then timeouts = timeouts + 1 end if ("closed" == c) or ("Network is unreachable" == c) or ("timeout" == c) then checkHEAD(host, URL, r, retry + 1, timeouts) end else @@ -434,7 +433,7 @@ local getMirrors = function () elseif "Active" == t and nil == d:find("yes", 1, true) then W("Mirror " .. host .. " is not active - " .. d) active = false --- TODO - Should do some input validation on BaseURL. +-- TODO - Should do some input validation on BaseURL, and everything else. else m[t] = d end -- cgit v1.1