Skip to content

Guard quiche-only QUIC connection state - #13478

Merged
bneradt merged 1 commit into
apache:masterfrom
bneradt:fix-openssl-quic-clang-warnings
Aug 3, 2026
Merged

Guard quiche-only QUIC connection state#13478
bneradt merged 1 commit into
apache:masterfrom
bneradt:fix-openssl-quic-clang-warnings

Conversation

@bneradt

@bneradt bneradt commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Native OpenSSL QUIC builds do not use the connection table or quiche
timeout event stored by QUICNetVConnection. Clang diagnoses those
quiche-only private fields as unused, causing warnings-as-errors builds
to fail.

This guards the members with TS_HAS_QUICHE so native OpenSSL builds do
not declare them while quiche builds retain the required state.

Native OpenSSL QUIC builds do not use the connection table or quiche
timeout event stored by QUICNetVConnection. Clang diagnoses those
quiche-only private fields as unused, causing warnings-as-errors builds
to fail.

This guards the members with TS_HAS_QUICHE so native OpenSSL builds do
not declare them while quiche builds retain the required state.
Copilot AI review requested due to automatic review settings August 3, 2026 17:55
@bneradt bneradt added this to the 11.0.0 milestone Aug 3, 2026
@bneradt bneradt self-assigned this Aug 3, 2026
@bneradt bneradt added Build work related to build configuration or environment QUIC labels Aug 3, 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

Note

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Guards quiche-only QUIC connection state in QUICNetVConnection so OpenSSL QUIC builds don’t declare unused private fields (avoiding -Werror failures), while keeping required state for quiche builds.

Changes:

  • Wrap _ctable member in #if TS_HAS_QUICHE.
  • Wrap _quiche_timeout member in #if TS_HAS_QUICHE.
  • Minor formatting normalization around quiche-timeout method declarations.

Comment thread src/iocore/net/P_QUICNetVConnection.h
@bneradt
bneradt merged commit 5d878a4 into apache:master Aug 3, 2026
15 checks passed
@bneradt
bneradt deleted the fix-openssl-quic-clang-warnings branch August 3, 2026 19:08
@github-project-automation github-project-automation Bot moved this to For v10.2.0 in ATS v10.2.x Aug 3, 2026
cmcfarlen pushed a commit that referenced this pull request Aug 4, 2026
Native OpenSSL QUIC builds do not use the connection table or quiche
timeout event stored by QUICNetVConnection. Clang diagnoses those
quiche-only private fields as unused, causing warnings-as-errors builds
to fail.

This guards the members with TS_HAS_QUICHE so native OpenSSL builds do
not declare them while quiche builds retain the required state.

(cherry picked from commit 5d878a4)
@cmcfarlen cmcfarlen moved this from For v10.2.0 to Picked v10.2.0 in ATS v10.2.x Aug 4, 2026
@cmcfarlen cmcfarlen modified the milestones: 11.0.0, 10.2.0 Aug 4, 2026
@cmcfarlen

Copy link
Copy Markdown
Contributor

Cherry-picked to the 10.2.x branch as c4595b2 for the 10.2.0 release.

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

Labels

Build work related to build configuration or environment QUIC

Projects

Status: Picked v10.2.0

Development

Successfully merging this pull request may close these issues.

3 participants