Re[2]: fread() behaviour

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings, Jochem Maas.
In reply to Your message dated Thursday, November 20, 2008, 22:11:09,

> good stuff from Stut & Craige ... I just wondered, Im pretty sure that the
> usleep(1000) is completely superfluous. fread() will read to the buffer length
> or EOF regardless of how slow the stream trickles in (obviously it may timeout
> if nothing trickles in for ages but that's a different issue and not solved
> with a usleep() AFAICT).

Keep in mind that PHP has configuration limit for maximum execution time of
single command.
If you sure know that your socket could be slow, you'd better use functions
designed especially to work with asyncronous I/O.


-- 
Sincerely Yours, ANR Daemon <anrdaemon@xxxxxxxxxxx>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux