From: Alexander M. <al...@gm...> - 2003-05-14 23:36:12
|
> Not got much time to look now but maybe multiple passes over the modules > might be a good solution. modules needing to cause an internal redirect > could modify the url during an earlier phase. > say the "Request Manipulation" phase. (Modules could register an interest > in what phases they are interested in) > If the modules needing to do redirects could register interest in being > called during the request manipulation phase then no performance hit would > be taken for modules not needing to do internal redirects. > The advantage with this phase approach where you don't do everything in > one handle method - is that you wouldn't need to re-iterate the modules > if the last module needs to do a redirect because the real handling get's > done a later phase. > Later, > Matt. First of all, there is a new package of the prototype code at http://insomnia-httpd.sourceforge.net/insomnia.zip as I forgot to add the two module files :(. Thanks for notifying me Dana. Concerning this issue, having multiple phases sounds like a good idea, we just would need to define how many phases we need to have and in which point in the request process they should hook into. This might even solve the problem I mentioned earlier about the order upon we call the individual handlers (eg: GZIP has to run as absolute last one - unless there is some post-zip handler). Alexander |