httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <>
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 07:40:41 GMT
Quoting Brian Pane <>:

> I think it's easy to solve the keepalive problem: core_output_filter()
> just needs to set r->bytes_sent as soon as it sees the EOS, rather than
> waiting until it writes the data.  In the keepalive case, this means
> updating r->bytes_sent before the code that sets aside the brigade.
> The remaining problem is: how can we identify the request_rec from
> within core_output_filter()?  Within that filter, f->r is NULL.

That's nasty. Is that different then core_input_filter()? Would you know if f->r
is NULL in core_input_filter() as well? If yes, than we're back to square one on
the number of input bytes too.

I worse comes to worse, we can always add the headers up into bytes_sent and be
done with it.


View raw message