Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 27332 invoked from network); 16 Mar 2008 22:44:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Mar 2008 22:44:08 -0000 Received: (qmail 32270 invoked by uid 500); 16 Mar 2008 22:44:05 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 32245 invoked by uid 500); 16 Mar 2008 22:44:04 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 32236 invoked by uid 99); 16 Mar 2008 22:44:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Mar 2008 15:44:04 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [81.103.221.47] (HELO mtaout01-winn.ispmail.ntl.com) (81.103.221.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Mar 2008 22:43:15 +0000 Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20080316224554.NCAO16169.mtaout01-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com> for ; Sun, 16 Mar 2008 22:45:54 +0000 Received: from s5h.net ([81.110.242.129]) by aamtaout03-winn.ispmail.ntl.com with ESMTP id <20080316224851.DFDR26699.aamtaout03-winn.ispmail.ntl.com@s5h.net> for ; Sun, 16 Mar 2008 22:48:51 +0000 Received: (qmail 24937 invoked by uid 1010); 16 Mar 2008 22:43:26 +0000 Received: from unknown (HELO ?192.168.0.25?) (192.168.0.25) by s5h.net with SMTP; 16 Mar 2008 22:43:26 +0000 Message-ID: <47DDA28B.8000902@s5h.net> Date: Sun, 16 Mar 2008 22:43:23 +0000 From: ed User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: modules-dev@httpd.apache.org Subject: Re: long running background tasks References: <8d38ca0a0803112059m50c7538ag11d306ea55f8af79@mail.gmail.com> In-Reply-To: <8d38ca0a0803112059m50c7538ag11d306ea55f8af79@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Sam Carleton wrote: > When a user logs out of my web application, the application needs to > do a somewhat time consuming cleanup. I need Apache to respond in a > timely fashion to the log out request. Is there any way to start this > as a background process in the apache module? > > Sam I could be wrong, but I think Apache will kill off the child (and your background thread) after a given amount of time. What might be better for you is to add this to a queue, perhaps via means of a unix socket (or IP socket) of another process, that does this work. -- The 28.8 frame relay to www.panic.net is screwed because of GW Bush. Tech Support is playing NFL 2k2. :: http://www.s5h.net/ :: http://www.s5h.net/gpg.html