]> git.ipfire.org Git - thirdparty/squid.git/commit - src/FwdState.cc
Bug #1957 fix: Close a persistent ICAP connection if we have to open a
authorrousskov <>
Fri, 11 May 2007 19:20:57 +0000 (19:20 +0000)
committerrousskov <>
Fri, 11 May 2007 19:20:57 +0000 (19:20 +0000)
commitc8ceec27fb6c783905751c3d8c471a626bd2f7af
tree9198944025d3cea5b388d8cbcc7b9b79caf29b3d
parentbe29fa07314e57b2f9d18d459cd7f2d08bf0a047
Bug #1957 fix: Close a persistent ICAP connection if we have to open a
new connection because the transaction is not retriable.

This change avoids a growing number of open connections when many
transactions create persistent connections but only few are retriable
and can reuse them.

FwdState was already doing that. I moved FwdState logic to
PconnPool::pop so that any PconnPool user thinks about the problem and
benefits from the common solution. The change should have no material
affect on FwdState.
src/ICAP/ICAPXaction.cc
src/forward.cc
src/pconn.cc
src/pconn.h