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: Getting at server's MaxClients setting?: msg#00599

apache.mod-perl

Subject: Re: Getting at server's MaxClients setting?



Bas A.Schulte wrote:
Geoff,

On Wednesday, November 27, 2002, at 03:07 PM, Geoffrey Young wrote:

in this case, MaxClients looks like it calls ap_daemons_limit to make the setting, so you may be able to create a subclass that offers up that API to perl-land. for more information on how, you can check out the slides from my recent ApacheCon talk:

http://www.modperlcookbook.org/~geoff/slides/ApacheCon/oo-mod_perl-printable.
ppt.gz

hmm... sounds like another good idea to add to my next talk :)


Well, for the moment, I'll grep for it in the current httpd.conf ;)

Just thought I'd ask in case I was missing something obvious.

nope, you didn't miss anything. unfortunately, mod_perl 1.X does not offer up the entire Apache API to perl land (though the intent of 2.0 is to do just that).

actually, I just whipped up a module that offers get/set for MaxClients:

http://www.modperlcookbook.org/~geoff/modules/experimental/Apache-MaxClients-0.01.tar.gz

it's not perfect (it doesn't offer the checks that the MaxClients directive does), but it seems to work. with a little effort, I suspect it could be worked out so that you don't need a request object, but rather an Apache::Server object. however, it shows how easy mod_perl makes it to open up the Apache API where you need it.

--Geoff






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

Recently Viewed:
video.h264.deve...    technology.erps...    drivers.hostap/...    user-groups.lin...    games.railroad-...    handhelds.linux...    lang.harbour.de...    recreation.radi...    culture.publica...    xfree86.devel/2...    music.john-cage...    otrs.cvs/2003-0...    network.e-smith...    asplinux.suppor...    qnx.openqnx.dev...    ietf.nfsv4/2005...    editors.vim/200...    kde.devel.kopet...    web.zope.zwiki....    freebsd.devel.m...    java.xdoclet.de...    php.simpletest....    bacula.user/200...    security.virus....   
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

Navigation