Return-Path: Delivered-To: apmail-perl-dev-archive@www.apache.org Received: (qmail 76007 invoked from network); 2 Oct 2003 20:29:32 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Oct 2003 20:29:32 -0000 Received: (qmail 53200 invoked by uid 500); 2 Oct 2003 20:29:19 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 53190 invoked by uid 500); 2 Oct 2003 20:29:19 -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 53176 invoked from network); 2 Oct 2003 20:29:19 -0000 Received: from unknown (HELO mail.logilune.com) (195.154.174.52) by daedalus.apache.org with SMTP; 2 Oct 2003 20:29:19 -0000 Received: from stason.org (localhost.logilune.com [127.0.0.1]) by mail.logilune.com (Postfix) with ESMTP id 96E587AC16; Thu, 2 Oct 2003 22:29:23 +0200 (CEST) Message-ID: <3F7C8A9E.9020600@stason.org> Date: Thu, 02 Oct 2003 13:29:18 -0700 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630 X-Accept-Language: en-us, en, he, ru MIME-Version: 1.0 To: Geoffrey Young Cc: dev@perl.apache.org Subject: Re: [Fwd: Re: map_to_storage hook question..] References: <3F7C3F11.7070809@modperlcookbook.org> <3F7C6606.7050609@stason.org> <3F7C7A9C.6000302@modperlcookbook.org> <3F7C7D43.6000906@stason.org> <3F7C884E.6050004@modperlcookbook.org> In-Reply-To: <3F7C884E.6050004@modperlcookbook.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Geoffrey Young wrote: > >>> well, from the sounds of Bill's email, map_to_storage is going to run >>> even if you return OK from a PerlTransHandler, and it's >>> map_to_storage that consumes the overhead of stat'ing the filesystem >>> for static files. >>> >>> but I could be misunderstanding - I haven't looked at the code yet. >> >> >> >> I think not. That's precisely the point of: >> >> PerlTransHandler Apache::Constants::OK > > > yes, I'm aware of that. > >> >> which causes map_to_storage to skip. I think it's the same in mp2. > > > apparently it isn't. I modified mod_example.c to hook map_to_storage > and returned OK from a PerlTransHandler. mod_example's translate > handler is not called, but map_to_storage still is. Right, PerlTransHandler Apache::OK without setting r->filename was segfaulting in httpd-2.0, I think it has been fixed, but I don't remember whether I have tested it since then. So it's a different behavior in httpd-2.0, since httpd-1.3 then. But we could internally shortcut map_to_storage if transhandler has returned OK, no? Do we really need yet another hook? >>> but regardless, as with all things apache, if it exists we should >>> probably open it up :) >> >> >> >> If it's of any use to us, sure, otherwise, not really. IMHO, >> PerlTransHandler is just fine for this. > > > looks like it will be value added. I'll put something together soonish > for this. Would it still be an added value if we can make PerlTransHandler behave like 1.3 did? __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org