httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@organic.com>
Subject Re: [PATCH] Brian's nph stuck in graceful bug
Date Sat, 04 Oct 1997 01:50:08 GMT
At 06:21 PM 10/3/97 -0700, Dean Gaudet wrote:
>The child that invokes the nph cgi does time out properly, but then gets
>stuck waiting on the child forever because of a waitpid() in the
>cgi_handler.  This problem exists in all previous versions of apache as
>well.  But they have no way of solving it -- since they have no idea how
>much traffic has gone over the nph socket they don't know if it should be
>timed out.  The nph cgi really has to deal with the timeout. 

Right; I guess the only reason I'm seeing it now is that the nph stays
bound to the child in our current model, rather than simply giving the
socket to the nph script and then moving on to the next request.  Curious
though that I didn't see a process table full of nph- scripts earlier...

>But, in 1.3 since we relay all the output anyhow, we can skip this extra
>waitpid() and clean up the nph cgi just like any old cgi (i.e. SIGTERM,
>wait 3 seconds, SIGKILL).

I'll try this out now...

	Brian




--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
"it's a big world, with lots of records to play." - sig   brian@organic.com

Mime
View raw message