projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0c0b2b
)
Make sure dns cache timeout -1 really means forever, as it is documented to
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 18 Feb 2004 07:56:18 +0000
(07:56 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 18 Feb 2004 07:56:18 +0000
(07:56 +0000)
be. Simply skip the pruning.
lib/hostip.c
patch
|
blob
|
history
diff --git
a/lib/hostip.c
b/lib/hostip.c
index
2e9d530
..
05e6e8c
100644
(file)
--- a/
lib/hostip.c
+++ b/
lib/hostip.c
@@
-200,6
+200,11
@@
hostcache_prune(curl_hash *hostcache, int cache_timeout, int now)
void Curl_hostcache_prune(struct SessionHandle *data)
{
time_t now;
+
+ if(data->set.dns_cache_timeout == -1)
+ /* cache forever means never prune! */
+ return;
+
if(data->share)
Curl_share_lock(data, CURL_LOCK_DATA_DNS, CURL_LOCK_ACCESS_SINGLE);