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-on: https://go-review.googlesource.com/c/net/+/795600 LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Nicholas Husin <nsh@golang.org> Auto-Submit: Damien Neil <dneil@google.com> Reviewed-by: Nicholas Husin <husin@google.com>
This repository holds supplementary Go networking packages.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.
The git repository is https://go.googlesource.com/net.
The main issue tracker for the net repository is located at https://go.dev/issues. Prefix your issue with “x/net:” in the subject line, so it is easy to find.