httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: content-length filter and r->bytes_sent
Date Sun, 14 Jul 2002 19:33:09 GMT
At 02:51 AM 7/14/2002, you wrote:
>Currently, the content-length filter attempts to compute the length
>of the entire response before passing any data on to the next filter,
>and it sets request_rec->bytes_sent to the computed content-length.

The real answer is simple.  C-L filter should only set the "Content-Length".

Move the bytes_sent computation into the HTTP filter, AFTER we
return success from pass_brigade.  If pass brigade fails, the bytes
were not sent.  If they were set aside, oh well, we will never know.

Bill



Mime
View raw message