On 11 January 2011 16:59, Robert Cummings <robert@xxxxxxxxxxxxx> wrote: > Doh, that sucks! Yep. The common solution I've seen is to have a separate thread running to read from the stream/buffer the content (and suffer the blocking) and the main thread to simply return the data from the the buffer or nothing if there is nothing (and not suffer the blocking). There is a PROPER way, but it is a completely different file i/o mechanism to the one currently used by PHP (and those that use the second thread technique). -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php