logo       

Re: Re: register_hooks() proposal: msg#00175

Subject: Re: Re: register_hooks() proposal
On Thu, 2004-09-23 at 20:11, Mark Stosberg wrote:
> > The order is only important in rare cases, for example:  A database 
> > connection needs to be closed at the teardown stage, but maybe the 
> > session object needs to be flushed at the teardown stage as well...  in 
> > this case, the order can be important if the session uses the database, 
> > so the database would register a hook at the teardown stage as LAST or 
> > even REALLY_LAST since it is a special case.  I'd be happy enough to 
> > drop the REALLY_LAST and REALLY_FIRST sections to simplify things, since 
> > I think it would work fine with only 3 options (FIRST, MIDDLE, LAST), or 
> > (FIRST, DONTCARE, LAST).
> 
> For reference, I looked up some the Apache documentation about this. 
> Here's one page I found:
> 
> http://httpd.apache.org/docs-2.0/developer/hooks.html
> 
> I noticed that in general the "really_first" and "really_last" positions
> weren't highlighted. I think I would like to drop them, at least
> initially. MIDDLE is always described as the "don't care" option, thus I
> think is better named DONTCARE. (I realize I'm just re-stating what Cees
> has stated are reasonablie ideas above). 

I've been pondering this for a while now and I have come to two
conclusions:

1. Making DONTCARE a synonym for MIDDLE is a very good idea. I think
that DONTCARE is more meaningful in a lot of ways but I don't think we
should drop MIDDLE. Maybe consistently use DONTCARE in the docs and just
leave MIDDLE in the code for people that are familiar with Apache. Maybe
make a small note about it being synonym in the docs but that's it.

2. We should leave REALLY_FIRST and REALLY_LAST in the code and maybe
make a small note about it in the docs but don't make a big deal about
using them. There are perfectly good reasons for using them, they should
be used sparingly though. Maybe like MT does with priority 0 and 11 we
should throw an error if more that one callback is registered to them.


-- 
Tony Fraser
tony@xxxxxxxxxxxxx
Sybaspace Internet Solutions                        System Administrator
phone: (250) 246-5368                                fax: (250) 246-5398


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe