]> git.ipfire.org Git - thirdparty/squid.git/commit - src/CommCalls.cc
Converts the PortCfgPointer to reference counted
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 14 Jul 2014 09:48:47 +0000 (02:48 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 14 Jul 2014 09:48:47 +0000 (02:48 -0700)
commitfa720bfbffea58f40958d0f6dc67fca6a53e8862
tree2e4099bc1e3841bfa7a18c1873ca8430bf14f33f
parent26d714bed05b02cc5d221be23808890c60c69b3a
Converts the PortCfgPointer to reference counted

This allows long-lived connections to retain access to their original
receiving port configuration even after squid has been reconfigured.
Reference counting prevents some leaking of these port configuration
details and associated state by removing locking uncertainties.

Also, fixes all parsing errors resulting from the change. Most of
the issues were due to use of raw-pointers and explicit
cbdataReference*() API.
26 files changed:
src/AccessLogEntry.cc
src/AccessLogEntry.h
src/CommCalls.cc
src/Makefile.am
src/MasterXaction.h
src/SquidConfig.h
src/acl/Acl.cc
src/anyp/PortCfg.cc
src/anyp/PortCfg.h
src/anyp/forward.h
src/cache_cf.cc
src/cf.data.pre
src/client_side.cc
src/client_side.h
src/client_side_request.cc
src/comm/ModPoll.cc
src/comm/ModSelect.cc
src/comm/ModSelectWin32.cc
src/comm/TcpAcceptor.cc
src/comm/TcpAcceptor.h
src/format/Format.cc
src/neighbors.cc
src/send-announce.cc
src/ssl/helper.cc
src/ssl/support.cc
src/tools.cc