From ad19f95f15bac425c1b37a7a260025d8fc9fe63c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 7 May 2007 07:07:55 +0000 Subject: James Bursa fixed a bug in the multi handle code that made the connection cache grow a bit too much, beyond the normal 4 * easy_handles. --- lib/multi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/multi.c b/lib/multi.c index c61958ea4..d9d7eb290 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -485,7 +485,7 @@ CURLMcode curl_multi_add_handle(CURLM *multi_handle, the shared cache every single easy handle had 5 entries in their cache by default. */ CURLcode res = Curl_ch_connc(easy_handle, multi->connc, - multi->connc->num*4); + multi->num_easy * 4); if(res != CURLE_OK) /* TODO: we need to do some cleaning up here! */ return CURLM_OUT_OF_MEMORY; -- cgit v1.2.3