
john-modperl at o-rourke
Apr 22, 2008, 7:51 AM
Post #1 of 2
(367 views)
Permalink
|
|
body truncated on extra reads
|
|
Hi folks, I'm curious - can anyone explain what actually happens internally if you try to read more from $r->read() than specified in the Content-Length header? I noticed when trying subsequent calls to read after all bytes had been read that it truncates the buffer, which I guess is understandable as it could be the next request. I'm just wondering wether $r->read( $buffer, 1000 ) is a bad thing to do if the incoming content is only 900 bytes. cheers John
|