]> git.ipfire.org Git - thirdparty/squid.git/commit - src/tests/stub_fd.cc
Move listener socket handling to libcomm-listener.la
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 31 Dec 2009 02:35:01 +0000 (15:35 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 31 Dec 2009 02:35:01 +0000 (15:35 +1300)
commit04f5590583c7d4b09190196ed23a7ea4b34a0bda
tree8777f6df69577457605cdc8473b9a6451f48280a
parent7d214c1bc9e9186d87ebdb7d847328ea548c479b
Move listener socket handling to libcomm-listener.la

* Renamed AcceptFD to ListenStateData
* listener sockets 'owned' by the code which opened them
  - FtpStateData owns the FTP data sockets
  - config HTTP settings own the http_port/https_port listeners.
* Removed fdc_table - replaced with Comm::CurrentListenerSockets.
  - reasonable memory savings (default 32-bit build only 8 KB, large production 64-bit build save 768 KB)
  - initialized in one simple fast step.
  - changes only made by ListenStateData constructor/destructor
* HotConf ready listener sockets (depends only on further config changes to happen)
18 files changed:
configure.in
src/Makefile.am
src/ProtoPort.cc
src/ProtoPort.h
src/client_side.cc
src/comm.cc
src/comm.h
src/comm/AcceptLimiter.cc [new file with mode: 0644]
src/comm/AcceptLimiter.h [new file with mode: 0644]
src/comm/ListenStateData.cc [new file with mode: 0644]
src/comm/ListenStateData.h [new file with mode: 0644]
src/comm/Makefile.am [new file with mode: 0644]
src/comm/comm_internal.h [new file with mode: 0644]
src/fde.h
src/ftp.cc
src/protos.h
src/store.cc
src/tests/stub_fd.cc