httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: cvs commit: httpd-2.0/server/mpm/worker mpm_default.h worker.c
Date Tue, 18 Dec 2001 14:38:53 GMT
trawick@apache.org writes:

>   Log:
>   Change core code to allow an MPM to set hard thread/server
>   limits at startup.
>   +
>   +/* we only ever have 1 main process running... */ 
>   +#define HARD_SERVER_LIMIT 1
>   +
>   +/* Limit on the threads per process.  Clients will be locked out if more than
>   + * this  * HARD_SERVER_LIMIT are needed.
>   + *
>   + * We keep this for one reason it keeps the size of the scoreboard file small
>   + * enough that we can read the whole thing without worrying too much about
>   + * the overhead.
>   + */
>   +#ifdef NO_THREADS
>   +#define HARD_THREAD_LIMIT 1
>   +#endif
>   +#ifndef HARD_THREAD_LIMIT
>   +#define HARD_THREAD_LIMIT 50 
>   +#endif

Hmmm... (2nd thoughts :) )

mpm_default.h exists so people can edit default settings in one nice
place...  it wasn't nice for me to move these things out of
mpm_defaults.h...  I'll move them back in there...   hopefully these
settings won't be abused by modules and instead modules will call
ap_mpm_query()

-- 
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Mime
View raw message