mirror of
https://github.com/curl/curl.git
synced 2026-08-26 04:13:31 +03:00
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:
parent
bcfe3cb231
commit
ad19f95f15
3 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue