cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: problems with cached addresses - anyone?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sun, 15 Feb 2004 16:58:17 +0100 (CET)

On Sun, 15 Feb 2004, Grigory Entin wrote:

> > How many host name do you have in the cache when it crashes?
>
> I'm not sure exactly, as I don't know where to look for that number -

It would basicly be the amount of different host names you've used.

> if you give a hint I could verify it. At least I have _two_ CURL instances -
> one is used as FTP connection to a fixed host, another as HTTP connection to
> another host + I have HTTP proxy, and no FTP proxy - so there should be at
> least two host names, probably more - due to redirects from HTTP replies or
> whatever. I don't know if the cache is shared among different CURL
> instances, sorry, that's why I give these probably irrelevant details.

Each curl handle has its own cache and they are not shared unless specificly
made so.

I'll try to write an internal function within a few days that'll check the
internal state and output the cache data, so that we can make calls to that
function at several places to help pinpoint exactly where/when this problem
occurs.

We've had others saying that removing the prune call solves this problem, and
I guess that's the quick work-around for you as well. The only problem is then
that by doing that, the cache will never be pruned...

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
Received on 2004-02-15