On Thu, April 6, 2006 8:11 pm, Adam Kennedy wrote:
> Before I got delayed and my JSAN timeslice ended, I had a work in
> progress to automate mirror selection.
>
> The idea was to write a single small file into the repository containing
> the index build time and the name of the mirror.


> 2. Determine the age of the mirror
>
> Diff the current time to the timestamp in the file. If older than a
> certain threshold (say, 1 week in the CPAN case) you then know the
> mirror has gone stale.

CPAN has such a file at authors/02STAMP which pause updates on a regular
basis.

search.cpan.org uses this when selecting a mirror for redirecting so it
does not redirect you to a mirror that does not have the required file.

Graham.


Reply via email to