]> git.ipfire.org Git - thirdparty/squid.git/commit - src/htcp.cc
Support ICP and HTCP _servers_ sharing listening sockets.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 14 Jun 2010 21:22:01 +0000 (15:22 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 14 Jun 2010 21:22:01 +0000 (15:22 -0600)
commit013e320c6831a2b175ce7a5b4fc15e58dafdc27d
tree66513b484ee9fe4242ea65bd59334b3f6eb07627
parent678584927570c7cb561ab8e34e18e6f9f768a14d
Support ICP and HTCP _servers_ sharing listening sockets.

Without a shared cache, the servers will report many false misses.

ICP and HTCP _clients_ cannot be supported in SMP environment unless each
process has its own address (i.e., unique IP address and/or unique [ICP] port)
because we cannot match outgoing queries and incoming responses across
processes. If ICP/HTCP support in SMP is needed, the easiest change would
be to use random source ports for sending ICP/HTCP queries. This may also
improve security by avoiding well-known source ports for UDP queries.
src/htcp.cc
src/icp_v2.cc
src/ipc/FdNotes.cc
src/ipc/FdNotes.h