Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 61882 invoked from network); 11 May 2010 16:05:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 May 2010 16:05:07 -0000 Received: (qmail 46840 invoked by uid 500); 11 May 2010 16:05:07 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 46795 invoked by uid 500); 11 May 2010 16:05:06 -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 46787 invoked by uid 99); 11 May 2010 16:05:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 16:05:05 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rch@google.com designates 74.125.121.35 as permitted sender) Received: from [74.125.121.35] (HELO smtp-out.google.com) (74.125.121.35) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 16:04:59 +0000 Received: from wpaz24.hot.corp.google.com (wpaz24.hot.corp.google.com [172.24.198.88]) by smtp-out.google.com with ESMTP id o4BG4bEw018416 for ; Tue, 11 May 2010 09:04:38 -0700 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1273593878; bh=Yr5ZRPUm735m+72kHPzlN7OANdk=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=Qeh6YAw9HipJpgjCqo1i8b47pqXZelCFTYGjKxAIdtnJQwZRzE+UaZUyib2qsz2OL 7fLg+xNQeX3R5zd4xUccQ== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:date:message-id:subject:from:to:content-type:x-system-of-record; b=MPFL+JHmMhgWgbs0JqTdXgNKF4zwDwTeTVbJ6gtdU96E76l4VD8eEaf2UGUwm9Wlv Nq0DBGwbynnz5LHNQ5Z4g== Received: from yxe11 (yxe11.prod.google.com [10.190.2.11]) by wpaz24.hot.corp.google.com with ESMTP id o4BG4a5x030592 for ; Tue, 11 May 2010 09:04:36 -0700 Received: by yxe11 with SMTP id 11so2879732yxe.10 for ; Tue, 11 May 2010 09:04:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.13.20 with SMTP id 20mr11045894ybm.170.1273593875809; Tue, 11 May 2010 09:04:35 -0700 (PDT) Received: by 10.150.183.3 with HTTP; Tue, 11 May 2010 09:04:35 -0700 (PDT) Date: Tue, 11 May 2010 09:04:35 -0700 Message-ID: Subject: Inbound / Outbound connections? From: Ryan Hamilton To: modules-dev@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-System-Of-Record: true Hi There, I'm working on an apache module which would like to act as an input filter for connections (not requests). Initially, I added my module unconditionally via ap_hook_pre_connection. This seemed to work well, but when I attempted to use mod_proxy, I discovered that my module was attempting to filter the outbound proxy request. Whoops! Not quite what I wanted. When ap_hook_pre_connection is call, it has a conn_rec structure. Is there a straightforward way to tell if this connection is an incoming connection (that we are listening on?) or an outbound connection (to some other host)? Or alternatively, am I going about this the totally wrong way? Thanks! Ryan