httpd-dev mailing list archives

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

>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.

Yes, it's NULL in core_input_filter() too.


View raw message