Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: [patch] filter_init implementation: msg#00140

apache.mod-perl.devel

Subject: Re: [patch] filter_init implementation



Stas Bekman wrote:
OK, I have completed the fully blown perl support and cleaned up the implementation.

whee!


Now it should be pretty easy to add support for more than one init handler (now only 1 is supported), as I've changed the modperl_handler_t struct to be a chain of handlers. so if we get two FilterHasInitHandler() attrs for the same filter we can add them twice to the cv's magic field and then later push them all into the parent handler's chain. However for now I don't see a need for this functionality. Let me know if you think we need it.

I think it would be nice to have it ('if you build it, they will come'), but I don't see it as big issue right now.


Also it should be pretty easy to add support for other attributes which accept perl code as their arguments. This can be useful for other handlers.

At the end I've decided to use FilterInitHandler and FilterHasInitHandler attribute names. Let's see if after using them for a bit it feels good. I decided to keep the init concept, since pre without a noun doesn't sound good, whereas init is OK. Moreover, we (mod_perl) *are* implementing an filter_init and we run it for request and connection filters, for HTTP and any other protocol, whereas Apache does that only for HTTP.

that sounds fine to me.


I've put some preliminary docs here (the url will autovivify within 6h):
http://perl.apache.org/docs/2.0/api/Apache/Filter.html

Please take a look and patch it if it reads unclear... Thanks.

looks good to me. I'll have some examples for everyone 'soonish'.

--Geoff


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

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | 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

Navigation