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.
This commit is contained in:
Daniel Stenberg
2007-05-07 07:07:55 +00:00
parent bcfe3cb231
commit ad19f95f15
3 changed files with 7 additions and 2 deletions

View File

@@ -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;