Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 74894 invoked from network); 31 Mar 2009 02:26:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Mar 2009 02:26:15 -0000 Received: (qmail 41403 invoked by uid 500); 31 Mar 2009 02:26:14 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 41318 invoked by uid 500); 31 Mar 2009 02:26:14 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 41305 invoked by uid 99); 31 Mar 2009 02:26:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Mar 2009 02:26:14 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [204.127.217.104] (HELO fmailhost04.isp.att.net) (204.127.217.104) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Mar 2009 02:26:05 +0000 Received: from home.akins.org ([68.209.255.245]) by isp.att.net (frfwmhc04) with ESMTP id <20090331022539H04009itvfe>; Tue, 31 Mar 2009 02:25:39 +0000 X-Originating-IP: [68.209.255.245] Received: from [192.168.1.106] (unknown [192.168.1.106]) by home.akins.org (Postfix) with ESMTP id B1DE0178059 for ; Mon, 30 Mar 2009 22:29:43 -0400 (EDT) Message-Id: <24C49C1B-1F8D-416B-8A41-3E7EDBE069C4@akins.org> From: "M. Brian Akins" To: dev@httpd.apache.org In-Reply-To: <4239a4320903301637q6def59d9j9dcf708d2aa24f13@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: what is in modules vs what is in the core Date: Mon, 30 Mar 2009 22:25:39 -0400 References: <4239a4320903301637q6def59d9j9dcf708d2aa24f13@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org On Mar 30, 2009, at 7:37 PM, Paul Querna wrote: > mod_watchdog is the latest offender in a series of modules that expose > additional functions to the API. (mod_proxy and mod_cache do too!) > > What happened to all functions that are not inside server/* must be > either dynamic optional functions or hooks? Some modules (mostly 3rd party??) allow it either way - optional function or just linkage. I'm personally a fan of hooks and providers. (With providers, I usually just do the lookup once in, say, post-config, and "cache" the results in the "subscribing" module - this saves some hash lookups on potentially every single request.) As I hack on some lua stuff, it's useful to have the symbols for functions. That may just be because I'm lazy, because I could do optional function lookups in library opens, I suppose. OT, but I like my Lua glue in a lua module and just use "require 'apache2.memcache'" (or whatever) to do the linking. This works really well with per thread lua states that are all loaded at startup... (hint, hint) --Brian