]> git.ipfire.org Git - thirdparty/squid.git/commit
Polish: de-duplicate helper statistics objects
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 2 Oct 2012 01:55:36 +0000 (13:55 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 2 Oct 2012 01:55:36 +0000 (13:55 +1200)
commit1f7ba0b4867d6b5a5c42e7925eb6df51fa89f08f
tree05a6a91d50d92b8c3c292e6349feee9068b361c9
parent01103c8c298256c3c12a74d73491841bc4534421
Polish: de-duplicate helper statistics objects

* Combine the stats structure on per-helper server classes. For more
  consistent statistic gathering.

* Add initStats() method to initialize statistics variables correctly.
  Previously only done for some counters on stateless helper objects.

* Add missing accounting of pending lookups in stateful helper code.

* Add counter for replies received from the helper.

* Add reporting of replies received back from each helper.

There are no logic or decision making logics affected by these changes.
The new increment/decrement and stats are purely affecting statistical
report outputs.

FUTURE TODO:
* replace the 'busy' flag on stateful helpers with pending>0 check
  as used by stateless helpers to indicate queue count.
src/helper.cc
src/helper.h