Re: PHP 4.0 Bug #6038: fread() in non blocking mode cant't read more than 901120 bytes

From: Date: Wed, 09 Aug 2000 09:57:57 +0000
Subject: Re: PHP 4.0 Bug #6038: fread() in non blocking mode cant't read more than 901120 bytes
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-28229@lists.php.net to get a copy of this message
>> socket_set_blocking($sock, false); >> $data = fread($sock, 13453592); >> print strlen($data); >> >> The stream is exactly 13453592 bytes long and can "easily" be read >> in blocking mode. >> >> "easily" means that fread() takes about 4 _minutes_ to read the data >> where e.g. telnet or other tools needs 4 _seconds_. 12M in 4 seconds? You must have a really good network... Anyway, are you sure you really need to allocate and store in memory all those 12 megs? -- Stanislav Malyshev stas@zend.com +972-3-6139665 ext.106

« previous php.dev (#28229) next »