]> git.ipfire.org Git - thirdparty/squid.git/commit - src/cf.data.pre
Cleanup transaction message size logging
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 29 Oct 2013 02:24:29 +0000 (19:24 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 29 Oct 2013 02:24:29 +0000 (19:24 -0700)
commitd6df21d2b7df823e96a2e4ec58b68de2b3768a92
treef215c34042abab3b0e6313534543fec25fe04582
parent3211357686fbd7315140fda755c9aa8d3dea277b
Cleanup transaction message size logging

- Add class MessageCounters to track all size properties of a
  transaction message. HTTP-centric for now.

- replaced AccessLogEntry::cache.requestHeadersSize with
  AccessLogEntry::http.clientRequest.headerSz

- replaced AccessLogEntry::cache.requestSize with
  AccessLogEntry::http.clientRequest (total() of all counters)

- replaced AccessLogEntry::cache.replyHeadersSize with
  AccessLogEntry::http.adaptedReply.headerSz

- replaced AccessLogEntry::cache.replySize with
  AccessLogEntry::http.adaptedReply (total() of all counters)

- Rename the logformat byte codes for message size counters to
  form a logical set of details by message type

- reorganize and document logformat option codes more clearly

There are no logic changes in this patch. Several accounting
bugs have been identified and marked for fixing later.
13 files changed:
src/AccessLogEntry.h
src/Makefile.am
src/MessageCounters.h [new file with mode: 0644]
src/adaptation/icap/ModXact.cc
src/cf.data.pre
src/client_side.cc
src/format/ByteCode.h
src/format/Format.cc
src/format/Token.cc
src/icp_v2.cc
src/log/FormatHttpdCombined.cc
src/log/FormatHttpdCommon.cc
src/log/FormatSquidNative.cc