From:             [EMAIL PROTECTED]
Operating system: RedHat 7.0
PHP version:      4.0.4pl1
PHP Bug Type:     cURL related
Bug description:  curl leaks fds on failure

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 Bug report at: http://bugs.php.net/?id=10541&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to