cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: share interface DNS cache timeout

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 20 Jan 2006 08:00:58 +0100 (CET)

On Thu, 19 Jan 2006, Yi Li wrote:

> If I use shared DNS cache, and try to set up the cache time out, do I need
> to set it for each easy handler or just once?

The default timeout is 60 seconds. But yes, you need to set your timeout for
each easy handle as each easy handle will prune the cache after the given
timeout... This could possibly be done differently, but this is how it
currently works!

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-01-20