Skip to content

Conversation

@jpeach
Copy link
Contributor

@jpeach jpeach commented Aug 18, 2016

Make the byte count logging tags consistent. We have

  • cqbl - client request body length
  • cqhl - client request header length
  • pscl - client response body length
  • pshl - client response header length
  • psql - client response total length
  • pqbl - server request body length
  • pqhl - server request header length
  • sscl - server response body length
  • sshl - server response header length

We should add *ql to get the missing totals and standardize on *cl for the content length (csscl marginally tips the balance towards "content length" in favor of "body length").

@jpeach
Copy link
Contributor Author

jpeach commented Aug 18, 2016

/cc @zwoop @bryancall @sudheerv

@atsci
Copy link

atsci commented Aug 18, 2016

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/554/ for details.

@atsci
Copy link

atsci commented Aug 18, 2016

Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/450/ for details.

@zwoop zwoop added the Logging label Aug 19, 2016
@zwoop zwoop added this to the 7.0.0 milestone Aug 19, 2016

len = snprintf(str, _MAX_CRUUID_LEN, "%s-%" PRId64 "", uuid, m_http_sm->sm_id);
marshal_str(buf, str, round_strlen(len + 1));
len = snprintf(str, sizeof(str), "%s-%" PRId64 "", uuid, m_http_sm->sm_id);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this fixed/addressed in a separate PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Aug 18, 2016, at 7:25 PM, Leif Hedstrom notifications@github.com wrote:

In proxy/logging/LogAccessHttp.cc:

@@ -769,8 +782,11 @@ LogAccessHttp::marshal_client_req_uuid(char *buf)
const char *uuid = (char *)Machine::instance()->uuid.getString();
int len;

  • len = snprintf(str, _MAX_CRUUID_LEN, "%s-%" PRId64 "", uuid, m_http_sm->sm_id);
  • marshal_str(buf, str, round_strlen(len + 1));
  • len = snprintf(str, sizeof(str), "%s-%" PRId64 "", uuid, m_http_sm->sm_id);
    Isn't this fixed/addressed in a separate PR?

Yeh I just branched this from the other PR


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@atsci
Copy link

atsci commented Aug 19, 2016

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/558/ for details.

@atsci
Copy link

atsci commented Aug 19, 2016

Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/454/ for details.

@jpeach jpeach merged commit 49973c7 into apache:master Aug 19, 2016
bneradt added a commit to bneradt/trafficserver that referenced this pull request Feb 6, 2024
* HttpConnectionCount move to iocore/net

This moves HttpConnectionCount to iocore/net from proxy/http in
anticipation to using its functionality on the client accept connection
side. While doing so, this also renames HttpConnectionCount to
ConnectionTracker because it is no longer HTTP transaction specific.

* Build updates for test_net

Moving ConnectionTracker to iocore/net induced linking behavior
differences that required these changes to fix test_net.

* Fix tls_bridge to use Regex from tscore

tls_bridge had previously linked to tscore, but had copied in its own
version of Regex. This removes the duplicated code and logic which, with
these changes, caused duplicate definitions errors.

(cherry picked from commit fc3f12e)

Conflicts:
      include/proxy/http/HttpConnectionCount.h
      include/proxy/http/HttpProxyAPIEnums.h
      include/shared/overridable_txn_vars.h
      iocore/cache/test/main.cc
      iocore/net/ConnectionTracker.cc
      iocore/net/ConnectionTracker.h
      iocore/net/Makefile.am
      iocore/net/SessionSharingAPIEnums.h
      iocore/net/libinknet_stub.cc
      plugins/experimental/tls_bridge/CMakeLists.txt
      plugins/experimental/tls_bridge/tls_bridge.cc
      proxy/PoolableSession.h
      proxy/http/Http1ServerSession.h
      proxy/http/HttpConfig.h
      proxy/http/HttpConnectionCount.cc
      proxy/http/HttpConnectionCount.h
      proxy/http/HttpProxyAPIEnums.h
      proxy/http/HttpProxyServerMain.cc
      proxy/http/HttpSM.cc
      proxy/http/HttpTransact.h
      src/api/CMakeLists.txt
      src/iocore/net/CMakeLists.txt
      src/proxy/http/CMakeLists.txt
      src/proxy/http/HttpConfig.cc
      src/proxy/http/HttpConnectionCount.cc
      src/shared/overridable_txn_vars.cc
      src/tests/CMakeLists.txt
      src/traffic_server/InkAPI.cc

Co-authored-by: Brian Neradt <brian.neradt@gmail.com>
masaori335 pushed a commit to masaori335/trafficserver that referenced this pull request May 29, 2025
* check stat is not null

* remove debug ctl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants