]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
James Bursa fixed a bug in the multi handle code that made the connection
authorDaniel Stenberg <daniel@haxx.se>
Mon, 7 May 2007 07:07:55 +0000 (07:07 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 7 May 2007 07:07:55 +0000 (07:07 +0000)
cache grow a bit too much, beyond the normal 4 * easy_handles.

CHANGES
RELEASE-NOTES
lib/multi.c

diff --git a/CHANGES b/CHANGES
index 9bb85484d4abc36fbb9e1c0646f0cf0e5029272e..b6514630395996b160ae6c993ca4806016a4a51f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,10 @@
 
                                   Changelog
 
+Daniel S (7 May 2007)
+- 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.
+
 Daniel S (2 May 2007)
 - Anders Gustafsson remarked that requiring CURLOPT_HTTP_VERSION set to 1.0
   when CURLOPT_HTTP200ALIASES is used to avoid the problem mentioned below is
index 866fe9e4c384866b9447ede9fc7379213b4097af..bb94edfc033fe47d2d6ac032e4b6c7d17746ff54 100644 (file)
@@ -37,6 +37,7 @@ This release includes the following bugfixes:
  o curl_multi_socket() not "noticing" newly added handles
  o lack of Content-Length and chunked encoding now requires HTTP 1.1 as well
    to be treated as without response body
+ o connection cache growth in multi handles
 
 This release includes the following known bugs:
 
@@ -61,6 +62,6 @@ advice from friends like these:
  Song Ma, Dan Fandrich, Yang Tse, Jay Austin, Robert Iakobashvil,
  James Housley, Daniel Black, Steve Little, Sonia Subramanian, Peter O'Gorman,
  Frank Hempel, Michael Wallner, Jeff Pohlmeyer, Tobias Rundström,
- Anders Gustafsson
+ Anders Gustafsson, James Bursa
 
         Thanks! (and sorry if I forgot to mention someone)
index c61958ea40d66913c08733a41c72f0ad5e14bf9a..d9d7eb29037393400e0b784ebe77d0fd03b58a44 100644 (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;