ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/12/04/06:46:15

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
Message-ID: <07f101c17cb9$06992ba0$0200a8c0@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: "Gary R. Van Sickle" <g DOT r DOT vansickle AT worldnet DOT att DOT net>,
<cygwin-apps AT sources DOT redhat DOT com>
References: <NCBBIHCHBLCMLBLOBONKMELKCHAA DOT g DOT r DOT vansickle AT worldnet DOT att DOT net>
Subject: Re: multiple mirror code && setup HEAD
Date: Tue, 4 Dec 2001 22:44:25 +1100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-OriginalArrivalTime: 04 Dec 2001 11:44:23.0271 (UTC) FILETIME=[04B2DF70:01C17CB9]

----- Original Message -----
From: "Gary R. Van Sickle" <g DOT r DOT vansickle AT worldnet DOT att DOT net>

> Coolness.  One dime-a-dozen-notion that I've been having is an
automatic site
> selection ability that would ping 'em all and let God sort 'em out, or
> qsort, and then fail over in order of increasing ping.

qsort is history :}. The list.h template uses an insertion sort.

I've already though about this:

What you should do is have all the sites pinged when parsing
mirrors.lst, and then store the resulting list and times for future
reference on disk.
Then in the site_list_type_constructor add a ping parameter, and pass it
the ping. It should prepend the stringified ping to the sort key, giving
the user a list of fastest->slowest sites, and meaning that all the
linear code will automagically hit the fastest site first.


- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019