#33041 [Opn->Fbk]: Broken pipe on file_get_contents with HTTP handler causes 100% CPU loop
| From: | tony2001@php.net | Date: | Mon, 16 May 2005 08:51:34 +0000 |
| Subject: | #33041 [Opn->Fbk]: Broken pipe on file_get_contents with HTTP handler causes 100% CPU loop | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-79041@lists.php.net to get a copy of this message | ||
ID: 33041
Updated by: tony2001@php.net
Reported By: arachnid at notdot dot net
-Status: Open
+Status: Feedback
Bug Type: Performance problem
Operating System: Linux (Gentoo)
PHP Version: 5.0.3
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
Previous Comments:
------------------------------------------------------------------------
[2005-05-16 09:41:00] arachnid at notdot dot net
Description:
------------
Using file_get_contents with an HTTP url causes PHP (CLI, at least) to
go into a 100% CPU loop if the connection breaks. Since there's no
timeout context parameter, this persists indefinitely.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33041&edit=1