httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: Agenda for 1.2b7
Date Mon, 03 Feb 1997 09:10:31 GMT
On Sat, 1 Feb 1997, Marc Slemko wrote:

>   * 3 seconds delay in CGI execution on SunOS 4.x, see PR 122
>        Status: no patch.
>        Info: Pages containing script output show up with a delay of 3
>              seconds (there was no such delay in Apache 1.1.1). 
>              [rindfuss@medea.wz-berlin.de] tracked the problem down to
>              source file alloc.c, function free_proc_chain. This function
>              contains a conditional call to sleep(3), which causes the delay.
> 
>        for (p = procs; p; p = p->next) {
>           if (p->kill_how == kill_after_timeout) {
>             /* Subprocess may be dead already.  Only need the timeout if not. */
>             if (kill (p->pid, SIGTERM) != -1)  
>               need_timeout = 1;
>           } else if (p->kill_how == kill_always) {
>             kill (p->pid, SIGKILL);
>           }
>         }
>  
>         /* Sleep only if we have to... */
>   
>         if (need_timeout) sleep (3);
> 
>         [RobH: So CGI included as SSI hangs around for longer and needs
>                to be SIGTERM'ed.  Why?]
> 
>         [Roy: note also that a call to sleep will blow-out any other timeout]

That portion of alloc.c has not changed since 1.1.1.  But one thing that
has changed is which pool CGIs are spawned out of... see "diff -c3 -r1.25
-r1.26 mod_cgi.c", this has an effect on when that alloc code comes into
play.

Has anyone been able to reproduce the 3 second problem? 

Dean


Mime
View raw message