httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <cliffwool...@yahoo.com>
Subject Re: [PATCH] Take 2 of the http filter rewrite
Date Mon, 24 Sep 2001 05:08:28 GMT
On Sun, 23 Sep 2001, Ryan Bloom wrote:

> I don't see this at all.  It is not possible to specify how much is
> read from the socket itself.  I just read through the bucket_socket
> code, and we always try to read APR_BUCKET_BUFF_SIZE.  This seems to
> mean that we are going to read more from the socket than we should,
> and the second request will be lost.

Yeah... it was decided way back when that apr_bucket_read() should never
return partial content.  You get all of the data in the bucket when you
read from it, or as much as will fit in the bucket if the original data is
too big.  If you want less than that, split the bucket before reading it.

--Cliff


Mime
View raw message