#39037 [Opn->Fbk]: Memory leaks when using curl_multi
| From: | tony2001@php.net | Date: | Wed, 04 Oct 2006 14:25:03 +0000 |
| Subject: | #39037 [Opn->Fbk]: Memory leaks when using curl_multi | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103084@lists.php.net to get a copy of this message | ||
ID: 39037
Updated by: tony2001@php.net
Reported By: eugen at id dot com dot ua
-Status: Open
+Status: Feedback
Bug Type: cURL related
Operating System: Fedora Core 5
PHP Version: 5.1.6
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2006-10-04 14:08:48] eugen at id dot com dot ua
Description:
------------
Possible memory leaks when using curl_multi_* functions.
I start 10 tasks with curl_multi and at completion of one of them add a
new task. The use of memory is gradually increased thus, although
$GLOBALS has a permanent size approximately.
In particular, at the call of curl_close() or
curl_multi_remove_handle() memory is not freed (I guess it should
be...)
Reproduce code:
---------------
http://www.follow.net.ua/bug.phps
(see MEMORY_IS_NOT_RELEASED_HERE string near the end of file).
Expected result:
----------------
Downloading queue of documents with 10 threads
Actual result:
--------------
Gradual increasing of memory usage (sizeof $GLOBALS is *NOT*
increasing)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39037&edit=1