Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 62923 invoked from network); 9 Oct 2007 11:47:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Oct 2007 11:47:15 -0000 Received: (qmail 39905 invoked by uid 500); 9 Oct 2007 11:47:02 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 39874 invoked by uid 500); 9 Oct 2007 11:47:02 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 39865 invoked by uid 99); 9 Oct 2007 11:47:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 04:47:02 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Sven.Kaegi@trivadis.com designates 212.249.206.2 as permitted sender) Received: from [212.249.206.2] (HELO mailx2.trivadis.com) (212.249.206.2) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 11:47:04 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Filter function is called three times Date: Tue, 9 Oct 2007 13:46:42 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Filter function is called three times Thread-Index: AcgKaJyi3bWcpT7BS4aH087LSdXrZg== From: =?iso-8859-1?Q?Sven_K=E4gi?= To: X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I'm just trying to write my first Module (actually a filter) for Apache = and made an observation I can't explain. I have now made an empty skeleton that has some dummy configuration and a callback function for my filter that I registered as follows: static void register_hooks(apr_pool_t *p) { ap_register_input_filter(tvdldapfilter_name, insert_ldap_headers, = NULL, AP_FTYPE_CONTENT_SET); } The callback function itself has at the moment no functionality apart = from reading the dummy config and some logging. I compiled the whole stuff, tested it with apache and it works fine. The = only thing is: according to my logs my filter is called three times (twice = with mode =3D=3D AP_MODE_READBYTES and once with some other mode). The test = page I call is a simple html-Page with no pictures or additional stuff. Actually = it's a copy from the "It-Works!"-page. Finally my question: What could be the reason why my filter is called = three times instead of once and is there something I could do about that? Thanks for any hint Sven