cURL cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1431 removing names from DNS cache with CURLOPT_RESOLVE is not implemented

From: ygrek <ygreks_at_users.sf.net>
Date: Thu, 23 Oct 2014 17:24:58 +0000

My use case is - add host with CURLOPT_RESOLVE to dns cache, do the transfer, remove the host with CURLOPT_RESOLVE from the cache.
In libcurl setting the option just records the host to update in change list, which is promoted to dns cache by Curl_loadhostpairs which is called only in pretransfer. So setting the option CURLOPT_RESOLVE after the transfer (with intention to clear the cache) does nothing to the cache because it just records the host in the change list (which is later cleaned by reset I suppose).

---
** [bugs:#1431] removing names from DNS cache with CURLOPT_RESOLVE is not implemented**
**Status:** open
**Labels:** dns memory leak 
**Created:** Tue Oct 07, 2014 09:19 AM UTC by ygrek
**Last Updated:** Thu Oct 23, 2014 04:02 PM UTC
**Owner:** Daniel Stenberg
Removing names from DNS cache with CURLOPT_RESOLVE is not implemented (see TODO in Curl_loadhostpairs). With the fix 31860ab for https://sourceforge.net/p/curl/bugs/1327/ it means that constantly adding and deleting hostcache entries with CURLOPT_RESOLVE creates a memory leak, as such entries are never removed (nor by request nor automatically).
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-10-23

These mail archives are generated by hypermail.