note 64010 added to function.flush

From: Date: Wed, 05 Apr 2006 13:46:43 +0000
Subject: note 64010 added to function.flush
Groups: php.notes 
Request: Send a blank email to php-notes+get-107383@lists.php.net to get a copy of this message
Sorry if this is off topic, but it's the closest place I could find :) I had an issue with essentially running a CPU intensive task while updating the browser with a progress bar via javascript and flushing the buffer a lot. When the script was running, it effectively blocked other pages from running. I had a few extra httpd_preforks processes just waiting to be used, but they just sat there. I wasn't reading a file, locking database tables or anything that I would suspect an exclusive lock on, just outputting a bunch of text to the browser. I even tried throttling my loops to see if it was processor related but still had problems. Finally, I found this in the php.ini file and changed the On to Off and it worked. [Sockets] ; Use the system read() function instead of the php_read() wrapper. sockets.use_system_read = Off Posting in case someone else has the same issue (or if someone knows why this would make a difference :) ). ---- Server IP: 66.163.161.117 Probable Submitter: 63.231.14.74 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.flush.php Edit -- http://master.php.net/note/edit/64010 Del: integrated -- http://master.php.net/note/delete/64010/integrated Del: useless -- http://master.php.net/note/delete/64010/useless Del: bad code -- http://master.php.net/note/delete/64010/bad+code Del: spam -- http://master.php.net/note/delete/64010/spam Del: non-english -- http://master.php.net/note/delete/64010/non-english Del: in docs -- http://master.php.net/note/delete/64010/in+docs Del: other reasons-- http://master.php.net/note/delete/64010 Reject -- http://master.php.net/note/reject/64010 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#107383) next »