Re: multiple A records

From: Jonathan Larmour <JLarmour@dont-contact.us>
Date: Tue, 01 Jul 1997 15:57:52 +0100

--MimeMultipartBoundary
Content-Type: text/plain; charset="us-ascii"

At 16:30 01/07/97 +0200, Oskar Pearson wrote:
>Ed Knowles wrote:
>>
>> G'day Oskar!
>>
>> Compile 1.1.11 with -DRETRY_CONNECT=1 (it's the default in 1.2.alpha)
and see
>> how you go.

It would have been nice if this feature had been announced!!!! (And why
isn't it the default in 1.1.11 anyway?).

>hmm:
>
> if (++connectState->tries == 4)
> return 0;
>
>firstly - I can't find where connectState->tries is set to 0
>(->host and ->port are, but I presume that this is reset to 0 with strdup
>or mdup or something)

Look at the following in commConnectStart in comm.c, where the struct is
allocated. Its a calloc, not a malloc:

    ConnectStateData *cs = xcalloc(1, sizeof(ConnectStateData));

>Also:
>can't we get ipcacheCycleAddr to return addrs.count and then pass that
>instead of using the arbitrary number 4? (or am I missing something -
probably,
>if I know my coding skills)

I see no reason why not, but I'm no expert.

Jonathan L.

Origin UK,323 Cambridge Science Park,Cambridge,England. Tel: +44(1223)423355
------[ Do not think that every sad-eyed woman has loved and lost... ]------
April 12th! Ra!Ra!----[ she may have got him. -Anon ]-----April 12th! Ra!Ra!
Help fight spam! http://spam.abuse.net/ These opinions are all my own fault

--MimeMultipartBoundary--
Received on Tue Jul 29 2003 - 13:15:42 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:11:20 MST