[net] http2: initialize Transport on NewClientConn

2 views
Skip to first unread message

Damien Neil (Gerrit)

unread,
12:47 AM (22 hours ago) 12:47 AM
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Damien Neil voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: net
Gerrit-Branch: master
Gerrit-Change-Id: Ib6465b863bb0be3cd3d02d9c1bb349526a6a6964
Gerrit-Change-Number: 795600
Gerrit-PatchSet: 1
Gerrit-Owner: Damien Neil <dn...@google.com>
Gerrit-Reviewer: Damien Neil <dn...@google.com>
Gerrit-Comment-Date: Tue, 30 Jun 2026 04:47:27 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
unsatisfied_requirement
satisfied_requirement
open
diffy

Damien Neil (Gerrit)

unread,
11:21 AM (11 hours ago) 11:21 AM
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
Attention needed from Nicholas Husin and Tom Bergan

Damien Neil uploaded new patchset

Damien Neil uploaded patch set #2 to this change.
Open in Gerrit

Related details

Attention is currently required from:
  • Nicholas Husin
  • Tom Bergan
Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: newpatchset
    Gerrit-Project: net
    Gerrit-Branch: master
    Gerrit-Change-Id: Ib6465b863bb0be3cd3d02d9c1bb349526a6a6964
    Gerrit-Change-Number: 795600
    Gerrit-PatchSet: 2
    Gerrit-Owner: Damien Neil <dn...@google.com>
    Gerrit-Reviewer: Damien Neil <dn...@google.com>
    Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
    Gerrit-Reviewer: Tom Bergan <tomb...@google.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Attention: Tom Bergan <tomb...@google.com>
    Gerrit-Attention: Nicholas Husin <n...@golang.org>
    unsatisfied_requirement
    satisfied_requirement
    open
    diffy

    Damien Neil (Gerrit)

    unread,
    11:21 AM (11 hours ago) 11:21 AM
    to goph...@pubsubhelper.golang.org, Tom Bergan, Nicholas Husin, Gopher Robot, golang...@luci-project-accounts.iam.gserviceaccount.com, golang-co...@googlegroups.com
    Attention needed from Nicholas Husin

    Damien Neil removed Tom Bergan from this change

    Deleted Reviewers:
    • Tom Bergan
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Nicholas Husin
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: deleteReviewer
    Gerrit-Project: net
    Gerrit-Branch: master
    Gerrit-Change-Id: Ib6465b863bb0be3cd3d02d9c1bb349526a6a6964
    Gerrit-Change-Number: 795600
    Gerrit-PatchSet: 2
    Gerrit-Owner: Damien Neil <dn...@google.com>
    Gerrit-Reviewer: Damien Neil <dn...@google.com>
    Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
    Gerrit-Attention: Nicholas Husin <n...@golang.org>
    unsatisfied_requirement
    satisfied_requirement
    open
    diffy

    Nicholas Husin (Gerrit)

    unread,
    2:54 PM (8 hours ago) 2:54 PM
    to Damien Neil, goph...@pubsubhelper.golang.org, Gopher Robot, golang...@luci-project-accounts.iam.gserviceaccount.com, golang-co...@googlegroups.com
    Attention needed from Damien Neil

    Nicholas Husin voted Code-Review+2

    Code-Review+2
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Damien Neil
    Submit Requirements:
    • requirement satisfiedCode-Review
    • requirement satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: net
    Gerrit-Branch: master
    Gerrit-Change-Id: Ib6465b863bb0be3cd3d02d9c1bb349526a6a6964
    Gerrit-Change-Number: 795600
    Gerrit-PatchSet: 2
    Gerrit-Owner: Damien Neil <dn...@google.com>
    Gerrit-Reviewer: Damien Neil <dn...@google.com>
    Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Attention: Damien Neil <dn...@google.com>
    Gerrit-Comment-Date: Tue, 30 Jun 2026 18:54:01 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Nicholas Husin (Gerrit)

    unread,
    2:54 PM (8 hours ago) 2:54 PM
    to Damien Neil, goph...@pubsubhelper.golang.org, Nicholas Husin, Gopher Robot, golang...@luci-project-accounts.iam.gserviceaccount.com, golang-co...@googlegroups.com
    Attention needed from Damien Neil

    Nicholas Husin voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Damien Neil
    Submit Requirements:
      • requirement satisfiedCode-Review
      • requirement satisfiedNo-Unresolved-Comments
      • requirement satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: net
      Gerrit-Branch: master
      Gerrit-Change-Id: Ib6465b863bb0be3cd3d02d9c1bb349526a6a6964
      Gerrit-Change-Number: 795600
      Gerrit-PatchSet: 2
      Gerrit-Owner: Damien Neil <dn...@google.com>
      Gerrit-Reviewer: Damien Neil <dn...@google.com>
      Gerrit-Reviewer: Nicholas Husin <hu...@google.com>
      Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-Attention: Damien Neil <dn...@google.com>
      Gerrit-Comment-Date: Tue, 30 Jun 2026 18:54:07 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Russ Cox (Gerrit)

      unread,
      3:16 PM (7 hours ago) 3:16 PM
      to Damien Neil, goph...@pubsubhelper.golang.org, Russ Cox, Nicholas Husin, Nicholas Husin, Gopher Robot, golang...@luci-project-accounts.iam.gserviceaccount.com, golang-co...@googlegroups.com
      Attention needed from Damien Neil

      Russ Cox added 1 comment

      Patchset-level comments
      File-level comment, Patchset 2 (Latest):
      Russ Cox . unresolved

      It should be possible to at least write a test like in the bug report, declaring and using a zeroed Transport?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Damien Neil
      Submit Requirements:
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: net
      Gerrit-Branch: master
      Gerrit-Change-Id: Ib6465b863bb0be3cd3d02d9c1bb349526a6a6964
      Gerrit-Change-Number: 795600
      Gerrit-PatchSet: 2
      Gerrit-Owner: Damien Neil <dn...@google.com>
      Gerrit-Reviewer: Damien Neil <dn...@google.com>
      Gerrit-Reviewer: Nicholas Husin <hu...@google.com>
      Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: Russ Cox <r...@golang.org>
      Gerrit-Attention: Damien Neil <dn...@google.com>
      Gerrit-Comment-Date: Tue, 30 Jun 2026 19:16:18 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Damien Neil (Gerrit)

      unread,
      4:51 PM (6 hours ago) 4:51 PM
      to goph...@pubsubhelper.golang.org, Russ Cox, Nicholas Husin, Nicholas Husin, Gopher Robot, golang...@luci-project-accounts.iam.gserviceaccount.com, golang-co...@googlegroups.com
      Attention needed from Russ Cox

      Damien Neil voted and added 1 comment

      Votes added by Damien Neil

      Auto-Submit+1

      1 comment

      Patchset-level comments
      Russ Cox . resolved

      It should be possible to at least write a test like in the bug report, declaring and using a zeroed Transport?

      Damien Neil

      A zeroed Transport is actually impossible to test hermetically, since it'll only use TLS and will validate server certificates.

      I can write a test that exercises the bug with a modified Transport that either uses TCP or doesn't validate the server certificate. This should probably be several tests, exercising other functions than just NewClientConn. And then I've got to figure out where to draw the line between these tests and the existing, fairly comprehensive, test suite.

      I'll see if I can find something reasonable to add in a followup, submitting this since I don't want to block fixing the actual bug on finding perfection in testing.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Russ Cox
      Submit Requirements:
      • requirement satisfiedCode-Review
      • requirement satisfiedNo-Unresolved-Comments
      • requirement satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: net
      Gerrit-Branch: master
      Gerrit-Change-Id: Ib6465b863bb0be3cd3d02d9c1bb349526a6a6964
      Gerrit-Change-Number: 795600
      Gerrit-PatchSet: 2
      Gerrit-Owner: Damien Neil <dn...@google.com>
      Gerrit-Reviewer: Damien Neil <dn...@google.com>
      Gerrit-Reviewer: Nicholas Husin <hu...@google.com>
      Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: Russ Cox <r...@golang.org>
      Gerrit-Attention: Russ Cox <r...@golang.org>
      Gerrit-Comment-Date: Tue, 30 Jun 2026 20:51:03 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Russ Cox <r...@golang.org>
      satisfied_requirement
      open
      diffy

      Gopher Robot (Gerrit)

      unread,
      4:52 PM (6 hours ago) 4:52 PM
      to Damien Neil, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Russ Cox, Nicholas Husin, Nicholas Husin, golang...@luci-project-accounts.iam.gserviceaccount.com, golang-co...@googlegroups.com

      Gopher Robot submitted the change

      Change information

      Commit message:
      http2: initialize Transport on NewClientConn

      Add a missing init call in the NewClientConn path.

      Missing init calls are hard to write a test for, since the
      Transport test infrastructure causes the Transport to be
      initialized before the test begins. So instead, make it harder
      to forget the call: init now returns the net/http *Transport,
      so code which uses it needs to call init to get it.

      Fixes golang/go#80198
      Change-Id: Ib6465b863bb0be3cd3d02d9c1bb349526a6a6964
      Reviewed-by: Nicholas Husin <n...@golang.org>
      Auto-Submit: Damien Neil <dn...@google.com>
      Reviewed-by: Nicholas Husin <hu...@google.com>
      Files:
      • M http2/export_wrap_test.go
      • M http2/transport_wrap.go
      Change size: S
      Delta: 2 files changed, 14 insertions(+), 13 deletions(-)
      Branch: refs/heads/master
      Submit Requirements:
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: net
      Gerrit-Branch: master
      Gerrit-Change-Id: Ib6465b863bb0be3cd3d02d9c1bb349526a6a6964
      Gerrit-Change-Number: 795600
      Gerrit-PatchSet: 3
      Gerrit-Owner: Damien Neil <dn...@google.com>
      Gerrit-Reviewer: Damien Neil <dn...@google.com>
      Gerrit-Reviewer: Gopher Robot <go...@golang.org>
      Gerrit-CC: Russ Cox <r...@golang.org>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages