]> git.ipfire.org Git - thirdparty/squid.git/commit
Author: Amos Jeffries <squid3@treenet.co.nz>, Christos Tsantilas <chtsanti@users...
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 12 Jul 2011 19:02:48 +0000 (22:02 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 12 Jul 2011 19:02:48 +0000 (22:02 +0300)
commitfb505fa1d66db2c2746aea9e8249890ba05c8436
treec66ec1ac06e40edef53365e5de12dd536a129d51
parentbec91ba0c3ebbe1009e121ca749ee1ecb1e7e2fd
Author: Amos Jeffries <squid3@treenet.co.nz>, Christos Tsantilas <chtsanti@users.sourceforge.net>
Add DNS lookup step to ICAP connect

This patch add an async DNS lookup step to the ICAP connection setup process.
As a side effect it adds a little bit of tcp_outgoing_address support to ICAP.
Its limited to "dst" ACL at present. So outgoing ACL selections depending on
HTTP request details wont work. Which makes sense since this connection may
be reused for multiple requests.

More than one IP result are not used  since there seems to be no sane place
to store multiple IPs between connect attempts. It currently relies on ipcache
MarkGood/MarkBad keeping a good usable IP at the top of the IP set.

This patch also try to make Max-Connections ICAP feature cooperate well with
the new DNS lookup code
src/adaptation/icap/ServiceRep.cc
src/adaptation/icap/ServiceRep.h
src/adaptation/icap/Xaction.cc
src/adaptation/icap/Xaction.h
src/comm.cc