Geoffrey Young wrote:
that's right - if you are implementing a PerlMapToStorageHandler then you
are in charge of handling all the logic that is required of core if you
return OK.  this is exactly the same as it used to be with the
PerlTransHandler - return OK and you better be sure that you set
$r->filename to the real file or else things wont work as expected.


ok, this still holds true.

Do you remember how TRACE was implemented in apache 1.3? I don't remember anybody coming up with the issue of TRACE not working when using a custom transhandler.


you can't do that - HOOK_RUN_FIRST means that httpd core would always return
OK and prevent the mod_perl callback from running.


but this is only partially true - core_map_to_storage runs REALLY_LAST
(sorry for not checking first).  so maybe we can run PerlMapToStorage LAST. ..

You didn't need to check, I wrote that in my original email :)

the only problem with that, though, is that if you want to implement your
own protocol via the mod_perl API core will be handling TRACE requests even
though they may not be part of your protocol.  normally add-on modules
(which is essentially Perl handlers in userspace) would run FIRST to
override core behaviors, such as the HTTP specific ones.

Yes, but then you have to deal with things like TRACE. Purhaps it's simpler not to touch MapToStorage but set a fake filename in transhandler, in which case TRACE will work just fine.


boy, I wish I had the time to work on that dynamic hook ordering thing again
- it would be the perfect solution here.

Well, we could handle that later when you do have time. I just wanted to have a complete picture so that I can document that phase with examples.



-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to