httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Plüm, Rüdiger, VF-Group" <ruediger.pl...@vodafone.com>
Subject RE: Connection filters and the proxy
Date Mon, 23 Aug 2010 14:34:38 GMT
 

> -----Original Message-----
> From: Bryan McQuade 
> Sent: Montag, 23. August 2010 16:14
> To: dev@httpd.apache.org
> Subject: Re: Connection filters and the proxy
> 
> We added the following code snippet in our connection filter. If there
> is a better way please let me know as I would like to switch our code
> to use it (I believe we require pre_connection instead of
> process_connection so we can't use Stefan's suggestion):
> 
> // If this is not an inbound connection, for example one generated
> // by mod_proxy, then do not filter it.
> if (c->local_addr->port != c->base_server->port) {
>   return OK;
> }

Better check for c->sbh == NULL. This is only true in the case of a proxy
connection.

Regards

Rüdiger


Mime
View raw message