diff options
Diffstat (limited to '')
| -rw-r--r-- | README.md | 18 | 
1 files changed, 9 insertions, 9 deletions
| @@ -190,19 +190,19 @@ Active mirrors keyed by the FDQN, include the listed Protocols as a sub | |||
| 190 | table. Write this table to results/mirrors.lua so that the forked tests | 190 | table. Write this table to results/mirrors.lua so that the forked tests | 
| 191 | can read it. | 191 | can read it. | 
| 192 | 192 | ||
| 193 | Remove the mirror site from the mirrors table, then CheckRedirects() it | 193 | Remove the mirror site from the mirrors table, then checkRedirects() it | 
| 194 | first. | 194 | first. | 
| 195 | 195 | ||
| 196 | CheckRedirects() deb.devuan.org, the DNS RR. | 196 | checkRedirects() deb.devuan.org, the DNS RR. | 
| 197 | 197 | ||
| 198 | Loop through the mirrors table, and CheckRedirects() each one. | 198 | Loop through the mirrors table, and checkRedirects() each one. | 
| 199 | 199 | ||
| 200 | Wait for all forked tests to finish. | 200 | Wait for all forked tests to finish. | 
| 201 | 201 | ||
| 202 | Delete results/*.check. | 202 | Delete results/*.check. | 
| 203 | 203 | ||
| 204 | 204 | ||
| 205 | The CheckRedirects() function does this - | 205 | The checkRedirects() function does this - | 
| 206 | 206 | ||
| 207 | If there is no second argument, then the host is set to the first | 207 | If there is no second argument, then the host is set to the first | 
| 208 | argument, otherwise the host is the second argument. | 208 | argument, otherwise the host is the second argument. | 
| @@ -222,7 +222,7 @@ ionice -c3 ./mirror-checker.lua example.com/path x.x.x.x & | |||
| 222 | 222 | ||
| 223 | ionice -c3 ./mirror-checker.lua example.com/path [x:x:x:x:x:x] & | 223 | ionice -c3 ./mirror-checker.lua example.com/path [x:x:x:x:x:x] & | 
| 224 | 224 | ||
| 225 | For each CNAME, it CheckRedirects() the host, but with the CNAME as a | 225 | For each CNAME, it checkRedirects() the host, but with the CNAME as a | 
| 226 | second argument. | 226 | second argument. | 
| 227 | 227 | ||
| 228 | SRV reconds don't do anything yet, coz I have yet to see one from my test | 228 | SRV reconds don't do anything yet, coz I have yet to see one from my test | 
| @@ -241,9 +241,9 @@ directory, downloads the reference files using wget. While it should | |||
| 241 | actually perform the Integrity and Updated tests now, those haven't been | 241 | actually perform the Integrity and Updated tests now, those haven't been | 
| 242 | written yet. Note that currently this downloads 4GB per mirror. | 242 | written yet. Note that currently this downloads 4GB per mirror. | 
| 243 | 243 | ||
| 244 | Calls CheckRedirects() with the host as first and second arguments, and | 244 | Calls checkRedirects() with the host as first and second arguments, and | 
| 245 | includes the IP this time. The inclusion of the IP causes | 245 | includes the IP this time. The inclusion of the IP causes | 
| 246 | CheckRedirects() to call checkPaths(). | 246 | checkRedirects() to call checkPaths(). | 
| 247 | 247 | ||
| 248 | 248 | ||
| 249 | checkPaths() will call checkURL() for each of the reference files. | 249 | checkPaths() will call checkURL() for each of the reference files. | 
| @@ -253,7 +253,7 @@ checkURL() uses LuaSocket (or LuaSec for HTTPS) to send a HEAD request to | |||
| 253 | the IP, with a Host header set to the original host name. Redirects will | 253 | the IP, with a Host header set to the original host name. Redirects will | 
| 254 | not be followed by that request. If the request returns a redirect, then | 254 | not be followed by that request. If the request returns a redirect, then | 
| 255 | checkURL() is called recursively. If the redirect is to some host we are | 255 | checkURL() is called recursively. If the redirect is to some host we are | 
| 256 | not already checking, we call CheckRedirects() on it, with an IP of | 256 | not already checking, we call checkRedirects() on it, with an IP of | 
| 257 | "redir". This causes CheckRedirects() to bypass the IP gathering | 257 | "redir". This causes checkRedirects() to bypass the IP gathering | 
| 258 | process, and call checkPaths() with the new host. | 258 | process, and call checkPaths() with the new host. | 
| 259 | 259 | ||
