You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Ryan Hamilton <rc...@google.com> on 2010/05/11 18:04:35 UTC
Inbound / Outbound connections?
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