httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: Apology
Date Wed, 20 May 1998 18:27:48 GMT
Dean Gaudet wrote:
> 
> On Tue, 19 May 1998, Ben Laurie wrote:
> 
> > Yeah, that is a possible argument, but if you poke around, you'll
> > discover that there are sometimes two different request_recs involved,
> > for example, from mod_cgi:
> >
> >     /*
> >      * we spawn out of r->main if it's there so that we can avoid
> >      * waiting for free_proc_chain to cleanup in the middle of an
> >      * SSI request -djg
> >      */
> >     if (!ap_spawn_child_err_buff(r->main ? r->main->pool : r->pool,
> > cgi_child,
> >                                (void *) &cld,
> >                                kill_after_timeout,
> >                                &script_out, &script_in, &script_err))
{
> >       ap_log_error(APLOG_MARK, APLOG_ERR, r->server,
> >                   "couldn't spawn child process: %s", r->filename);
> >       return SERVER_ERROR;
> >     }
> 
> Yeah, this is because of something that Roy keeps saying is wrong -- that
> we send kill -TERM, wait 3 seconds and then send kill -9.  I think in the
> past I've said "I like the -9 for the reliability of my server when
> there's clueless users developing CGIs".  I changed my mind though... and
> in apache-nspr it just closes all the pipes and sends a single -TERM and
> then forgets about it.  Completely.  There isn't even a cleanup registered
> for it.

Possibly it should be a configurable option.

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686|  Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |
A.L. Digital Ltd,     |Apache-SSL author    http://www.apache-ssl.org/
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache

Mime
View raw message