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...

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to