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

From: Date: Sun, 03 Sep 2000 23:44:24 +0000
Subject: PHP 4.0 Bug #6038 Updated: fread() in non blocking mode cant't read more than 901120 bytes
Groups: php.dev 
Request: Send a blank email to php-dev+get-31875@lists.php.net to get a copy of this message
ID: 6038 Updated by: sniper Reported By: php-bugs@bjoernsworld.de Status: Closed Bug Type: Misbehaving function Assigned To: Comments: No feedback. Closed. --Jani Previous Comments: [2000-08-14 11:35:28] stas@php.net Well, I didn't exactly see what's the problem here. It works OK for me in blocking mode. In non-blocking, you are basically saying "give me anything from there but no more than X bytes", not "give me X bytes", so it does. So please xplain more in detail what's the problem. --------------------------------------------------------------------------- [2000-08-09 01:24:14] php-bugs@bjoernsworld.de 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_. The stream is a HTTP connection. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6038

« previous php.dev (#31875) next »