AW: [PEAR-DEV] Re: AW: Net_Server interface (bug?)

From: Date: Tue, 11 Nov 2003 08:56:31 +0000
Subject: AW: [PEAR-DEV] Re: AW: Net_Server interface (bug?)
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-23419@lists.php.net to get a copy of this message
Hi, > As you can see, no end character is required in this > implementation; I simply let socket_read to read blocks of data, > until the last block is reached the block size is surely == > readBufferSize. > When the last block is reached, there're two cases: > 1) the remaining block is smaller than readBufferSize; > 2) the remaining block is EXACTLY readBufferSize. That's a nice idea! But you should keep the readEndCharacter as an optional break condition. So the only problem will be clients that send no end character _AND_ $requestLength == n * readBufferSize... I'll implement this in the next version. Stephan

« previous php.pear.dev (#23419) next »