Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 17335 invoked by uid 500); 21 Aug 2002 11:44:18 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 17321 invoked from network); 21 Aug 2002 11:44:17 -0000 Subject: Re: Counting bytes_sent in core output_filter Re: [PATCH: Apache 2.0] mod_log_config: input/output bytes From: Bojan Smojver To: Apache Dev List In-Reply-To: <20020821073718.GQ14713@apache.org> References: <1029822380.1396.114.camel@beast.rexursive.com> <20020820062013.GD14713@apache.org> <1029844483.1396.191.camel@beast.rexursive.com> <20020820165905.GF14713@apache.org> <3D6340E1.3000609@apache.org> <20020821073718.GQ14713@apache.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 21 Aug 2002 21:49:15 +1000 Message-Id: <1029930555.1348.3.camel@beast.rexursive.com> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wed, 2002-08-21 at 17:37, Justin Erenkrantz wrote: > On Wed, Aug 21, 2002 at 12:27:29AM -0700, Brian Pane wrote: > > The remaining problem is: how can we identify the request_rec from > > within core_output_filter()? Within that filter, f->r is NULL. I > > have some ideas for solving this by putting some metadata in the > > brigade to associate each EOS with the corresponding request. > > But is there a better solution that already exists for getting > > the request_rec? > > Actually, I thought it was already fixed, but you're right the > connection filters don't yet have access to f->r. I think you are right, actually. The CVS version of http_protocol.c is different then the one from Apache 2.0.40. It contains a function update_r_in_filters(), which (I think) does that. Or maybe it's just wishful thinking on my behalf? Bojan