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:
cdba92a
)
Disable the DNS cache (by setting the timeout to 0) made libcurl leak
author
Daniel Stenberg
<daniel@haxx.se>
Thu, 31 Oct 2002 13:09:11 +0000
(13:09 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Thu, 31 Oct 2002 13:09:11 +0000
(13:09 +0000)
memory. Avery Fay brought the example code that proved this.
lib/hostip.c
patch
|
blob
|
history
diff --git
a/lib/hostip.c
b/lib/hostip.c
index
29d395d
..
1ad6951
100644
(file)
--- a/
lib/hostip.c
+++ b/
lib/hostip.c
@@
-218,11
+218,13
@@
Curl_addrinfo *Curl_resolv(struct SessionHandle *data,
}
#endif
+#if 0
/* If the host cache timeout is 0, we don't do DNS cach'ing
so fall through */
if (data->set.dns_cache_timeout == 0) {
return Curl_getaddrinfo(data, hostname, port, &bufp);
}
+#endif
time(&now);