Skip to content

cf-ngtcp2-cmn: de-duplicate ngtcp2_conn_client_new() call code - #22401

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:vquicdedup
Closed

cf-ngtcp2-cmn: de-duplicate ngtcp2_conn_client_new() call code#22401
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:vquicdedup

Conversation

@vszakats

@vszakats vszakats commented Jul 26, 2026

Copy link
Copy Markdown
Member

Copilot AI review requested due to automatic review settings July 26, 2026 18:48
@vszakats vszakats added HTTP/3 h3 or quic related tidy-up labels Jul 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Refactors QUIC connection setup in cf_connect_start() to remove duplicated ngtcp2_conn_client_new() and ctx->conn_ref initialization logic, keeping the direct-socket and tunneled-socket address setup as the only conditional parts.

Changes:

  • Moved ngtcp2_conn_client_new() to run once after the direct/tunneled address initialization branches.
  • Moved ctx->conn_ref initialization to a single shared location after successful connection creation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@testclutch

This comment was marked as off-topic.

@vszakats vszakats closed this in 6350eb0 Jul 27, 2026
@vszakats
vszakats deleted the vquicdedup branch July 27, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

HTTP/3 h3 or quic related tidy-up

Development

Successfully merging this pull request may close these issues.

3 participants