Bug in HTTP when proxying

"Michael Mulcahy" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi All,

There is a bug in HTTP module when connections are proxied and 
the connection is persistent. 

The host:port key of the target server is put into the connection pool 
rather than the host:port key of the proxy.

The proxy connection never gets reused as the conn_pool_get call is passed
the host and port of the proxy and that is never in the pool.

Here is a fix for this issue:

967c967,972
<         conn_pool_put(trans->conn, trans->host, trans->port);
---
>     {
>         if (trans->proxying)
>             conn_pool_put(trans->conn, proxy_hostname, proxy_port) ;
>         else
>             conn_pool_put(trans->conn, trans->host, trans->port);
>     }

comments!

Michael.

ANAM Wireless Internet Solutions
http://www.anam.com mailto:[email protected]
+353 1 284 7555
Castle Yard, Saint Patrick's Road, Dalkey, County Dublin, Ireland
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.