]> git.ipfire.org Git - thirdparty/squid.git/commit - src/cf.data.pre
Add %transport::>connection_id logformat code (#546)
authorChristos Tsantilas <christos@chtsanti.net>
Sun, 26 Jan 2020 20:13:55 +0000 (20:13 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 27 Jan 2020 13:58:02 +0000 (13:58 +0000)
commita120b7a8793b8b1fadd97063dd5c20485a3ab1f1
treefd3d195262e4b342ee8be916d49dc692036ed486
parentb4548e78f1b1a706619b90e88d876ec06b80ac41
Add %transport::>connection_id logformat code (#546)

Knowing client transport connection ID can be very helpful in triage,
especially when dealing with multiple requests associated with a
problematic connection (e.g., two access log records associated with a
single TLS connection bumping failure).

The "transport" namespace was added in hope to reduce confusion when/if
other connection_id %codes are added. The shorter and more familiar
"tcp::" namespace was rejected because we want configurations using the
new %code to continue to work well after Squid gains HTTP/3 support, and
HTTP/3 uses UDP for transport connections. Other UDP-based protocols may
have similar "connection" concepts.

This is a Measurement Factory project.
src/cf.data.pre
src/comm/Connection.cc
src/comm/Connection.h
src/format/ByteCode.h
src/format/Format.cc
src/format/Token.cc
src/tests/stub_libcomm.cc