Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 12852 invoked from network); 23 Feb 2009 17:54:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Feb 2009 17:54:06 -0000 Received: (qmail 34071 invoked by uid 500); 23 Feb 2009 17:54:05 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 34060 invoked by uid 500); 23 Feb 2009 17:54:05 -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 34049 invoked by uid 99); 23 Feb 2009 17:54:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Feb 2009 09:54:05 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ashishrk@gmail.com designates 209.85.200.169 as permitted sender) Received: from [209.85.200.169] (HELO wf-out-1314.google.com) (209.85.200.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Feb 2009 17:53:57 +0000 Received: by wf-out-1314.google.com with SMTP id 27so2233117wfd.15 for ; Mon, 23 Feb 2009 09:53:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=BpslCgjTMLPQgURuNuIptg0rAzheG4LYOVB+iGMvn1k=; b=kJ/q+3JDojUqECsPH1VnFjJ7Fkw12zZHSptXR08hWvoFbc3cLkaOrmKhFMEc7AZ6hW 4rPqyRntnrzyBFQ/4lz0l16PpAUXcufpTC4NxEGk9o5jeh8GSiHjL4pwMIOswSsU1Zz/ YE+nBwR28BgJL1as/sN1Hmp+d7X6kHxNsvx1Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=EdfuKLHk4Iccb4+vXJ7cVqfmBn8a6aS0Xel3xRLirW7/bo6/5cHnl7HU4BAWcvZ87Z vrRiZeK0zDONkoPHH+9knAYcjkgt6gnU9iRzWC0jLDB9tyi+zai4AW/5cJYFP7OYLuzO iLLYdr1LYy3hY02JFa64hubwAjiY6afcvG+Cc= MIME-Version: 1.0 Received: by 10.142.80.12 with SMTP id d12mr2081592wfb.163.1235411616369; Mon, 23 Feb 2009 09:53:36 -0800 (PST) In-Reply-To: <1404e5910902230935j5d8bbff2q51edc6d7b26cb7bf@mail.gmail.com> References: <1404e5910902230935j5d8bbff2q51edc6d7b26cb7bf@mail.gmail.com> Date: Mon, 23 Feb 2009 23:23:36 +0530 Message-ID: Subject: Re: Callback function which is just called before connection is destroyed From: Ashish Khare To: modules-dev@httpd.apache.org, covener@gmail.com Content-Type: multipart/alternative; boundary=001636e1fa538b8c23046399ae0a X-Virus-Checked: Checked by ClamAV on apache.org --001636e1fa538b8c23046399ae0a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Eric, Thanks for the fast response. By "Session" I mean when the request comes into the picture, the "c" and "r" parameters are intialized. Session ends when the request is served. the "c" and "r" parameters got destroyed or cleanup. Can you please send me the code snippet to register the cleanup function as you suggested. -Ashish On Mon, Feb 23, 2009 at 11:05 PM, Eric Covener wrote: > On Mon, Feb 23, 2009 at 11:46 AM, Ashish Khare > wrote: > > Hi, > > > > I need one small help from you. > > I have one memory allocation(malloc) of application associated with "r" > > parameter in input filter and output filter. > > I need to de-alloacte this memory and I want to de-allocate when session > > ends. > > Can any one of you please help me, which callback is used to notify the > > session ends in Apache. > > Fast reponse is appreciated. > > You can register a cleanup on r->connection->pool and it will run when > the connection is cleaned up, but it's not clear if that's what you > mean by a "session". > -- > Eric Covener > covener@gmail.com > --001636e1fa538b8c23046399ae0a--