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 23:17:45 GMT
On Thu, 2002-08-22 at 09:03, wrote:
> > > IMO, the best solution is to move the bytes_sent information to the
> > > conn_rec, and have the protocol module reset it whenever it wants to.  For
> > > backwards compat, it would be REALLY cool, if the r->bytes_sent could be
> > > linked to c->bytes_sent, but it can't, so oh well.
> > 
> > Why don't we just add up the lengths of headers and the status line and
> > be done with it? It will be accurate, since we know which headers are
> > being sent out.
> It's the body data that I care about, and you don't know that it will be
> accurate, because the client could have terminated the request half-way
> through sending the headers.

OK. I get it now. I hope you guys are not annoyed by my lack of
knowledge... Sorry, I just started playing with the source a few weeks

So, bytes_sent will continue to be the amount of body sent out only, no
headers? If that's the case, then the only option (if we want to know
total counts) is to introduce bytes_pushed and bytes_pulled (or similar)
into request_rec. Does that sound feasible to you?


View raw message