Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 54205 invoked by uid 500); 13 Sep 2002 12:21:46 -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 54190 invoked from network); 13 Sep 2002 12:21:45 -0000 Subject: Re: [PATCH]: mod_logio.c: NEW FILTER? From: Bojan Smojver To: Apache Dev List In-Reply-To: <20020913002432.GL1555@apache.org> References: <1031876583.1210.38.camel@beast.rexursive.com> <20020913002432.GL1555@apache.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 13 Sep 2002 22:27:49 +1000 Message-Id: <1031920069.31563.21.camel@beast.rexursive.com> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N After reading the document "Filtering I/O in Apache 2.0" (http://webdoc.ucar.edu/apachecon2001/files/th5/filters/apcon.html), it seems that only the connection based input filters have access to headers. The request based input filters do not have access to headers at all. That's why I was seeing zeros... So, this seems to be the old chicken and egg problem - we need to know what the request is, but we don't know that in the connection based filter (i.e. f->r is NULL). Therefore, we cannot determine the length of the headers in neither type of the filter if we want to be request based. How do we fix this? It seems we have to introduce the middle filter type that has access to headers but is request based. Finally, one "tiny" detail - how do we do that? Bojan