Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 94101 invoked from network); 2 Apr 2008 21:51:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2008 21:51:11 -0000 Received: (qmail 42265 invoked by uid 500); 2 Apr 2008 21:51:04 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 42201 invoked by uid 500); 2 Apr 2008 21:51:04 -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 42155 invoked by uid 99); 2 Apr 2008 21:51:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 14:51:04 -0700 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 [64.202.165.31] (HELO smtpauth18.prod.mesa1.secureserver.net) (64.202.165.31) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 02 Apr 2008 21:50:13 +0000 Received: (qmail 26272 invoked from network); 2 Apr 2008 21:50:31 -0000 Received: from unknown (71.239.140.137) by smtpauth18.prod.mesa1.secureserver.net (64.202.165.31) with ESMTP; 02 Apr 2008 21:50:30 -0000 Message-ID: <47F3FFA6.8090904@rowe-clan.net> Date: Wed, 02 Apr 2008 16:50:30 -0500 From: "William A. Rowe, Jr." User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Configuration Issues to Address [was Re: Dynamic configuration for the hackathon?] References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Akins, Brian wrote: > > The biggest problems I have with current system are: > -Every module does things differently Within limits this will remain true. But we are missing a host of very trivial simplifications for the casual module developer, and reinvent the same wheel module after module. I'm going to propose some changes to the default TAKE[0-9]+ macro and support functions to illustrate how much more useful these can be, and offer some new functions that make it really simple to * define constraints (an int, sure, but in what range?) * tag default-value, and error out if a non-default value is replaced by the user (e.g. LogLevel debug ........ LogLevel error later on) > -No real per-request configuration. Some modules use env to do some of > this. ixnay on the run-time intensive, slow down the server sorts of changes. httpd continues to become slower as it becomes more powerful. I know you are the first one to raise your hand and point out when we are doing too much processing for too simple a request. Isn't this what modules are for? Perhaps you could elaborate? > -I have to write a good bit of code before a module is configurable. (I'm > lazy. Very lazy.) Agreed - see my first point. One interesting point; why do we keep per-server and per-dir sections? Perhaps it's time for a single simpler-to-use mechanic which can represent either or both (essentially deprecate per-server in 3.0). > If we do what niq suggests (which, if we stick with current config system is > fine) is that it just adds another layer on top of all the existing issues. > > With lua, for example you could make modules Lua modules... Maybe could do > same in perl?? That's why I'm not a fan of all lua all the time. But to do what we all want, I bet we'll need to refine the config API, and simplify it for adding pluggable semantic engines (lua, perl, simply 'sed' etc). > My opinion (which is worthless, I know) is to pick one way and do it. Lua > is easy to learn and satisfies most (all?) of our requirements. And if > Brian M. and I can learn it, anyone can ;) Most importantly, if I am building an embedded httpd, I don't want all of this extra crap. httpd was famous for how lean it could be, are we all ready to throw out that advantage?