1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

The test for DNS cache entries left locked is now only built if

AGGRESIVE_TEST is also defined, as an addition to MALLOCDEBUG. It doesn't
work for multi interface usage and should only be used with careful
consideration.
This commit is contained in:
Daniel Stenberg 2002-11-11 22:51:09 +00:00
parent 775968003c
commit ca6e770837
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ hostcache_prune(curl_hash *hostcache, int cache_timeout, int now)
hostcache_timestamp_remove); hostcache_timestamp_remove);
} }
#ifdef MALLOCDEBUG #if defined(MALLOCDEBUG) && defined(AGGRESIVE_TEST)
/* Called from Curl_done() to check that there's no DNS cache entry with /* Called from Curl_done() to check that there's no DNS cache entry with
a non-zero counter left. */ a non-zero counter left. */
void Curl_scan_cache_used(void *user, void *ptr) void Curl_scan_cache_used(void *user, void *ptr)

View File

@ -2854,7 +2854,7 @@ CURLcode Curl_done(struct connectdata *conn)
if(conn->connect_addr) if(conn->connect_addr)
Curl_resolv_unlock(conn->connect_addr); /* done with this */ Curl_resolv_unlock(conn->connect_addr); /* done with this */
#ifdef MALLOCDEBUG #if defined(MALLOCDEBUG) && defined(AGGRESIVE_TEST)
/* scan for DNS cache entries still marked as in use */ /* scan for DNS cache entries still marked as in use */
Curl_hash_apply(data->hostcache, Curl_hash_apply(data->hostcache,
NULL, Curl_scan_cache_used); NULL, Curl_scan_cache_used);