#10541 [Com]: curl leaks fds on failure

From: Date: Tue, 20 Jul 2004 15:01:46 +0000
Subject: #10541 [Com]: curl leaks fds on failure
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-62820@lists.php.net to get a copy of this message
ID: 10541 Comment by: thumbnail-free1067 at hotmail dot com Reported By: stig@php.net Status: Closed Bug Type: cURL related Operating System: RedHat 7.0 PHP Version: 4.0.4pl1 New Comment: <a href=http://100--teensfootjob-a.da.ru>free thumbnail</a> Previous Comments: ------------------------------------------------------------------------ [2001-04-28 17:47:00] sterling@php.net fixed in cvs, thanks for the report. ------------------------------------------------------------------------ [2001-04-28 16:56:01] stig@php.net curl leaks file descriptors when a curl request fails or is aborted. How to reproduce: 1. Put a file called "blah.txt" with some plain text in docroot. 2. curltest.php: <?php header("Content-type: text/plain"); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://$SERVER_NAME/blah.txt"); curl_exec($ch); curl_close($ch); ?> 3. run httpd -X and find the process id 4. open curltest.php in your browser and hit Escape (it will hang because the Apache process is busy processing the PHP script) 5. (on Linux) ls -l /proc/<httpd-pid>/fs ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=10541&edit=1

« previous php.bugs (#62820) next »