cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_DNS_USE_GLOBAL_CACHE

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 12 Apr 2002 11:18:50 +0200 (MET DST)

On Fri, 12 Apr 2002, Oz _ wrote:

> How exactly does CURLOPT_DNS_USE_GLOBAL_CACHE work? Say I have a script
> using libcurl. Is it possible to run multiple instances of this script and
> have them all use the same libcurl cache?

Global cache means that the cache is kept globally within the process, so
that the cache survives the creation and deletion of curl handles. So that
sequential curl handles can re-use previous name=>IP resolves.

It does not mean that it'll survive creation and deletion of processes.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-04-12