From 6de7dc5879b3605a180dafa05f792f132eafdcaa Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 3 Jan 2002 10:22:59 +0000 Subject: Sterling Hughes' provided initial DNS cache source code. --- lib/easy.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/easy.c') diff --git a/lib/easy.c b/lib/easy.c index 245bbf955..c24eb9018 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -76,6 +76,7 @@ #include "ssluse.h" #include "url.h" #include "getinfo.h" +#include "hostip.h" #define _MPRINTF_REPLACE /* use our functions only */ #include @@ -139,7 +140,9 @@ CURLcode curl_global_init(long flags) { if (initialized) return CURLE_OK; - + + Curl_host_cache_init(); + if (flags & CURL_GLOBAL_SSL) Curl_SSL_init(); @@ -162,6 +165,8 @@ void curl_global_cleanup(void) if (!initialized) return; + Curl_host_cache_dtor(); + if (init_flags & CURL_GLOBAL_SSL) Curl_SSL_cleanup(); -- cgit v1.2.3