#24080 [Bgs->Opn]: fputs uses 100% cpu on broken pipe
| From: | info at virtualhost dot nl | Date: | Sun, 08 Jun 2003 13:06:43 +0000 |
| Subject: | #24080 [Bgs->Opn]: fputs uses 100% cpu on broken pipe | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-41454@lists.php.net to get a copy of this message | ||
ID: 24080
User updated by: info at virtualhost dot nl
Reported By: info at virtualhost dot nl
-Status: Bogus
+Status: Open
Bug Type: URL related
Operating System: Freebsd 4.8
-PHP Version: 4.3.1
+PHP Version: 4.3.2
New Comment:
Same problem with version 4.3.2. But cpu usage is divided differenty.
4.3.1 used about 50% users / 50% system now it is 90% user / 10% sytem.
Previous Comments:
------------------------------------------------------------------------
[2003-06-08 07:09:00] wez@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
.
------------------------------------------------------------------------
[2003-06-08 07:04:17] info at virtualhost dot nl
hello,
When executing the following code, the httpd deamon consumes all cpu
available, which should not happen of course. It's stops when the
timeout of the script is reached and the process is deleted.
<?
$sk = fsockopen ('211.6.149.130', 80);
if ($sk) {
fputs ($sk, "GET /blalbla HTTP/1.0\n\n");
}
?>
btw. When requested with curl it says directly 'broken pipe'.
btw2. Same for fwrite.
regards,
Jeroen
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24080&edit=1