cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: round robin DNS without Ares only takes first IP

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 27 Apr 2005 11:50:34 -0700

On Wed, Apr 27, 2005 at 05:06:30PM +0200, A Nonymous wrote:
> + /*
> + * Choose first alias to use by random and seek to it
> + */
> + aliasfirst = rand() % aliascount;

Is it really necessary to randomly choose an address, or to simply choose the
next address in the list each time? I would expect the DNS server to return
the list of addresses in random order already, so choosing one at random
again doesn't accomplish much, except to spread the load *less* evenly.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2005-04-27