Return-Path: Delivered-To: apmail-perl-dev-archive@www.apache.org Received: (qmail 5846 invoked from network); 21 Dec 2004 19:13:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 Dec 2004 19:13:35 -0000 Received: (qmail 32922 invoked by uid 500); 21 Dec 2004 19:12:55 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 32889 invoked by uid 500); 21 Dec 2004 19:12:54 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 32850 invoked by uid 99); 21 Dec 2004 19:12:53 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of gozer@ectoplasm.org designates 66.34.202.202 as permitted sender) Received: from Unknown (HELO minerva.ectoplasm.org) (66.34.202.202) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 21 Dec 2004 11:12:50 -0800 Received: from [172.28.57.123] (office4.tmcs.net [209.104.55.5]) by minerva.ectoplasm.org (Postfix) with ESMTP id 2FE625EB21; Tue, 21 Dec 2004 11:12:21 -0800 (PST) Message-ID: <41C87664.6000804@ectoplasm.org> Date: Tue, 21 Dec 2004 11:15:48 -0800 From: "Philippe M. Chiasson" User-Agent: Mozilla Thunderbird 0.9 (X11/20041127) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Stas Bekman Cc: mod_perl Dev , "Philippe M. Chiasson" Subject: Re: [mp2] why Apache::PerlSections gets resolved so many times? References: <41BCD279.9090408@stason.org> In-Reply-To: <41BCD279.9090408@stason.org> X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD00FC872452B6A1883C1331A" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------enigD00FC872452B6A1883C1331A Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Stas Bekman wrote: > Here is a bizarre thing I've noticed. when running: > > % env MOD_PERL_TRACE=h t/TEST -start > > modperl_handler_resolve: [5465/1078234656 rabbit.stason.org:8529] handler > Apache::PerlSections was not compiled at startup, attempting to resolve > using server conf pool 0x81420a8 > > modperl_handler_resolve: [5465/1078234656 rabbit.stason.org:8529] handler > Apache::PerlSections was not compiled at startup, attempting to resolve > using server conf pool 0x81420a8 > > prints about 8 times. any idea why? Each time it then reports that it > resolved that handler, but then it does the same cycle again... I've traced it down to this line : handler = modperl_handler_new(p, handler_name); So basically, to be able to use the existing modperl_handler_* framework to run sections, I am creating a brand new handler for each section, creating that behaviour. In the general case, where the handler will always be Apache::PerlSections, this is quite wastfull. I've looked at what we have in modperl_handler and I can't quite find a way to cleanly stash/retrieve my handler over each iterations. Best idea I can think of is to add an apr_table_t of handlers in scfg and search in there on each pass, creating if not already there. Seems to me like I should be able to use modperl_handler_lookup_handlers for this purpose, but I am not sure if it's possible. -------------------------------------------------------------------------------- Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5 http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5 --------------enigD00FC872452B6A1883C1331A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFByHZlyzKhB4jDpaURAnU0AJsHTlX+6teai/Sxc79qZocRx+0xjQCdE6RG zS0xB6Yb1wK52kWaei4wDek= =eYbC -----END PGP SIGNATURE----- --------------enigD00FC872452B6A1883C1331A--