On Fri, Apr 04, 2003 at 08:38:53AM -0800, Bill Moseley wrote:
> On Fri, 4 Apr 2003, Brian Reichert wrote:
> > Eh? I'm confused. What is '$request' in that example? If you
> > mean it's the request object, then that doesn't do what I expect.
>
> No, it's a simple counter. It's just a variable in some module that
> counts requests.
Ah! you're maintaining your own counter; I see.
I was looking for this element of Apache's own bookkeeping to be
exposed; I suppose I should have been more specific.
So, not that Bill's solution is unusable to me, let me ask my
question a bit more specifically:
Deep in the guts of http_main.c of Apache's source, I see code like
this:
void worker_main(void)
{
...
int total_jobs = 0;
...
if (max_jobs_per_exe && (total_jobs > max_jobs_per_exe)) {
/* Reached MaxRequestsPerChild. Stop accepting new connections
* and signal the parent to start a new child process.
*/
ap_start_restart(1);
break;
}
Is this 'total_jobs' exposed somehow via an Apache object? Or do
I need to maintain my own counter, as per Bill's solution?
> --
> Bill Moseley [EMAIL PROTECTED]
--
Brian 'you Bastard' Reichert <[EMAIL PROTECTED]>
37 Crystal Ave. #303 Daytime number: (603) 434-6842
Derry NH 03038-1713 USA BSD admin/developer at large