cURL / Mailing Lists / curl-library / Single Mail


Re: Multi handle DNS cache entry expiration

From: Daniel Stenberg <>
Date: Sat, 30 Mar 2013 20:49:09 +0100 (CET)

On Wed, 20 Mar 2013, Vladimir Grishchenko wrote:

> Should the cached DNS entries expire every 60 seconds by default when using
> the multi interface?

It does.

> With one multi and 4 easy handles at max often it takes more than 60 seconds
> between gethostbyname calls. Using 7.23.1 and sync resolver.

Then perhaps you should consider upping the timeout?

CURLOPT_DNS_CACHE_TIMEOUT is a bit funny as it is still set per easy handle
even when you use the multi handle, which could perhaps be a reason for change
at some point...

List admin:
Received on 2013-03-30