Skip to content

Fix build: TLS log fields use m_data, not m_http_sm - #13241

Merged
zwoop merged 1 commit into
apache:masterfrom
zwoop:FixBuilds
Jun 5, 2026
Merged

zwoop merged 1 commit into
apache:masterfrom
zwoop:FixBuilds

Conversation

@zwoop

@zwoop zwoop commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

m_http_sm was removed from LogAccess by #13059 (TransactionLogData).

m_http_sm was removed from LogAccess by apache#13059 (TransactionLogData).
@zwoop zwoop added this to the 11.0.0 milestone Jun 5, 2026
@zwoop
zwoop requested review from bryancall and cmcfarlen June 5, 2026 05:08
@zwoop zwoop self-assigned this Jun 5, 2026
Copilot AI review requested due to automatic review settings June 5, 2026 05:08
@zwoop zwoop added the Metrics label Jun 5, 2026
@zwoop zwoop added this to ATS v10.2.x Jun 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes build breakage introduced by #13059 by removing direct HttpSM access from LogAccess when marshalling TLS handshake-related log fields, routing those fields through TransactionLogData instead.

Changes:

  • Add TransactionLogData accessors for client TLS handshake byte counters and TLS 1.3 early data length.
  • Update LogAccess TLS-related marshalers to use m_data (TransactionLogData) rather than a removed m_http_sm member.
  • Update TLS squid-length calculations to use TransactionLogData byte counters for consistency across HttpSM-backed and non-HttpSM logging paths.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/proxy/logging/TransactionLogData.cc Implements new TLS handshake/early-data accessors (HttpSM-backed, defaulting to 0 for non-HttpSM).
src/proxy/logging/LogAccess.cc Replaces m_http_sm references with m_data for TLS handshake byte and squid-length TLS marshalers.
include/proxy/logging/TransactionLogData.h Declares new TLS handshake/early-data accessor APIs used by LogAccess.

Comment thread src/proxy/logging/LogAccess.cc
@zwoop
zwoop merged commit bc4bce3 into apache:master Jun 5, 2026
15 checks passed
@zwoop
zwoop deleted the FixBuilds branch June 5, 2026 15:11
@github-project-automation github-project-automation Bot moved this to For v10.2.0 in ATS v10.2.x Jun 5, 2026
@cmcfarlen cmcfarlen moved this from For v10.2.0 to Picked v10.2.0 in ATS v10.2.x Jun 16, 2026
@cmcfarlen cmcfarlen modified the milestones: 11.0.0, 10.2.0 Jun 16, 2026
@cmcfarlen

Copy link
Copy Markdown
Contributor

Cherry-picked to 10.2.x

cmcfarlen pushed a commit that referenced this pull request Jun 16, 2026
m_http_sm was removed from LogAccess by #13059 (TransactionLogData).

(cherry picked from commit bc4bce3)
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jul 29, 2026
m_http_sm was removed from LogAccess by apache#13059 (TransactionLogData).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Picked v10.2.0

Development

Successfully merging this pull request may close these issues.

4 participants