#24080 [NEW]: fputs uses 100% cpu on broken pipe

From: Date: Sun, 08 Jun 2003 12:04:17 +0000
Subject: #24080 [NEW]: fputs uses 100% cpu on broken pipe
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-41450@lists.php.net to get a copy of this message
From: info at virtualhost dot nl Operating system: Freebsd 4.8 PHP version: 4.3.1 PHP Bug Type: URL related Bug description: fputs uses 100% cpu on broken pipe 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 bug report at http://bugs.php.net/?id=24080&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24080&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24080&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24080&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24080&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24080&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24080&r=support Expected behavior: http://bugs.php.net/fix.php?id=24080&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24080&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24080&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24080&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24080&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24080&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24080&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24080&r=gnused

« previous php.bugs (#41450) next »