On March 25, 2003 03:40 am, Moriyoshi Koizumi wrote:
> Why did you commit another fix though my patch was already there and maybe
> Ian was looking into this issue? :)
Because the existing patch (latest CVS) did not work, when posting 30k or more
data it would usually stop after 7.8k or so. The result is because
ap_get_brigade() can return partial data and if you look at the docs for the
AP_MODE_READBYTES flags you'll see it will only read until CRLF is found OR
if the entire buffer is filled.
> "Ilia Alshanetsky" <[EMAIL PROTECTED]> wrote:
> > + if (tlen == count_bytes || !len) {
> > + break;
> > + }
>
> Is this ok? I suppose tlen would't always be equal to count_bytes.
Yeah this is ok, the idea is to fill the buffer to the end up until the point
there is either no more data to read (len == 0) or the buffer is full (tlen
== count_bytes).
Ilia
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php