httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Pane <bri...@apache.org>
Subject Re: Counting bytes_sent in core output_filter Re: [PATCH: Apache 2.0] mod_log_config: input/output bytes
Date Wed, 21 Aug 2002 23:56:06 GMT
rbb@apache.org wrote:

>r->bytes_sent needs to be just content data to be backwards
>compatible.  As for two fields to get the information, I am not sure why
>we need two fields.
>

We need two fields in order to compute r->bytes_sent in the first place.
If we compute r->bytes_sent based on c->bytes_sent, it will include the
length of the header.  We'll have to keep track of the header length
(in the HTTP filter) and subtract that in order to get the right value
for r->bytes_sent.  As a side-effect, anybody who needs the total # of
bytes sent (including the header) will be able to add r->bytes_sent
to the saved header length.

Brian



Mime
View raw message