Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 11845 invoked from network); 13 Oct 2006 20:47:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Oct 2006 20:47:34 -0000 Received: (qmail 97564 invoked by uid 500); 13 Oct 2006 20:47:24 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 97289 invoked by uid 500); 13 Oct 2006 20:47:23 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 97278 invoked by uid 99); 13 Oct 2006 20:47:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2006 13:47:23 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jravimenon@gmail.com designates 66.249.92.175 as permitted sender) Received: from [66.249.92.175] (HELO ug-out-1314.google.com) (66.249.92.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2006 13:47:22 -0700 Received: by ug-out-1314.google.com with SMTP id z36so526923uge for ; Fri, 13 Oct 2006 13:47:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uUvlf4sb4r9wpMHbQxBp4hLvk44Tm1J02nqbGTg2jraFXAFB1TES8rlmDd2v/ofADULnMPEwbIAZmP2rTMuyfzcaZ4UsCKn8PQmqydHVObc9p8LcgGN36eZn0zRGaHzbH9okccbQ1zQ4gI+2qzFtyOsBezD06eJQbz4530hh1mg= Received: by 10.78.160.2 with SMTP id i2mr4209022hue; Fri, 13 Oct 2006 13:47:01 -0700 (PDT) Received: by 10.78.143.4 with HTTP; Fri, 13 Oct 2006 13:47:01 -0700 (PDT) Message-ID: <920513da0610131347j374b970bh9806d88175fd27bb@mail.gmail.com> Date: Fri, 13 Oct 2006 13:47:01 -0700 From: "Ravi Menon" To: users@httpd.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <003101c6ed5f$40de14d0$66948c87@nnguyenpc> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] CGI receives SIGTERM X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N In the apache 1.3.x on Linux that I am using, apache does send a SIGTERM when the Timeout value has reached. The code is here: apache_1.3.33/src/main/alloc.c:free_proc_chain() This is called from ap_clear_pool() which is done at the end of request cycle, or during hard timeouts. The logic here also covers runaway cgi apps. Didn't confirm if the same exists in apache 2x but I would be surprised if this functionality was removed. Ravi On 10/11/06, Steve Swift wrote: > As far as I know Apache doesn't send Sigterm to a running CGI. This has > nothing to do with the Timeout directive. > A couple of weeks ago I asked the opposite question: "How can I timeout a > CGI that is hung/looping?" and the answer I got, from trusted sources was > that it cannot be done with Apache alone, but would require an external > monitor. > > Something else on your system is doing this. > > On 11/10/06, Nguyen, Nguyen Vu wrote: > > Hi guys, > > > > As far as I know the Timeout directive does control the amount of time a > CGI > > has before receiving a SIGTERM. However my CGI still receives a SIGTERM > > after what appears to be a random amount of time that is much less than > what > > I have set in the Timeout directive. The client side still has the > > connection to the CGI when it receives the SIGTERM. So I'm wondering under > > what other circumstances does apache send SIGTERM to a CGI? Any help is > very > > much appreciated. > > > > Thanks. > > > > > > > --------------------------------------------------------------------- > > The official User-To-User support forum of the Apache HTTP Server Project. > > See for more > info. > > To unsubscribe, e-mail: > users-unsubscribe@httpd.apache.org > > " from the digest: > users-digest-unsubscribe@httpd.apache.org > > For additional commands, e-mail: users-help@httpd.apache.org > > > > > > > > -- > Steve Swift > http://www.swiftys.org.uk --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org