Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 12358 invoked from network); 12 Jan 2011 19:50:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jan 2011 19:50:27 -0000 Received: (qmail 64981 invoked by uid 500); 12 Jan 2011 19:50:27 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 64899 invoked by uid 500); 12 Jan 2011 19:50:26 -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 64878 invoked by uid 99); 12 Jan 2011 19:50:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jan 2011 19:50:25 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of victor.ronin@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qw0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jan 2011 19:50:16 +0000 Received: by qwk4 with SMTP id 4so975334qwk.18 for ; Wed, 12 Jan 2011 11:49:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=ggXyh78Am841NLMk3PqYJeDyYpAnhpmOAjhTNdhRrG8=; b=YfeAs9xx5wGR6qrdPvHOAHM+ng7hnardiFaAh5sQrd0URB4LYwysihVNU/CCGDIFMC yhZHnukA1vgLes9lsoQK9S6T/eXdl6dQB0PzhLC/fIFdpJ2VaGy8+hTV122LomFbvYR7 1Z2PeYyIzUIzKllZJ3KyqM6Dc+gCo9tj2zb2w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=xTquL4EtMDcTAq/7phJqajSkQksEXVPwId6FVeD8xsP2TJc0PL3mx4OpbUpmsOL5u3 JvikcjqZcnkug5VRT5PCBo4iNYai9eNUIY4k02NrsELeIzWMCnGowAV0bJDMeYC3TZlk VjWdeemwwyxiihbB6YzuUoMoilILtwwwtS7BU= Received: by 10.224.67.75 with SMTP id q11mr1311216qai.3.1294861795849; Wed, 12 Jan 2011 11:49:55 -0800 (PST) Received: from Victor-Ronins-MacBook-Pro.local ([207.59.100.199]) by mx.google.com with ESMTPS id y17sm713348qci.45.2011.01.12.11.49.54 (version=SSLv3 cipher=RC4-MD5); Wed, 12 Jan 2011 11:49:55 -0800 (PST) Message-ID: <4D2E05E1.6010509@gmail.com> Date: Wed, 12 Jan 2011 14:49:53 -0500 From: Victor Ronin User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: modules-dev@httpd.apache.org Subject: Hook end of connection Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I need to write a module, which does something at the beginning and at the end of each connection. I found a hook to handle beginning of connection - ap_run_pre_connection. It's executed quite early, which works for me. And I need to execute some actions prior or just after connection will be closed. I looked a lot (reviewed whole connection processing - mpm, server\connection, http module), but wasn't able to find appropriate hook for that. I would appreciate, if you know a method to handle that. BTW. On note. Hooking end of request doesn't help me, because connection could be in keepalive state, so additional requests will be served in the same connection. Regards, Victor Ronin