mirror of
https://github.com/golang/net.git
synced 2026-04-01 02:47:08 +09:00
69340ce214a7fd75be3cd139d5b98a50536fbd1c
CL 352469 inverts the case in shouldTraceGetConn: We want to call GetConn for connections that have been previously used, but it calls GetConn only on approximately the first use. "Approximately", because it uses cc.nextStreamID to determine if the connection has been used, which is racy. Restructure the decision to call GetConn to track a per-ClientConn bool indicating whether GetConn has already been called for this connection. Set this bool for connections received from net/http, clear it after the first use of the connection. Fixes net/http's TestTransportEventTrace_h2. Change-Id: I8e3dbba7cfbce9acd3612e39b6b6ee558bbfc864 Reviewed-on: https://go-review.googlesource.com/c/net/+/353875 Trust: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
…
…
…
Go Networking
This repository holds supplementary Go networking libraries.
Download/Install
The easiest way to install is to run go get -u golang.org/x/net. You can
also manually git clone the repository to $GOPATH/src/golang.org/x/net.
Report Issues / Send Patches
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html. The main issue tracker for the net repository is located at https://github.com/golang/go/issues. Prefix your issue with "x/net:" in the subject line, so it is easy to find.
Description
Languages
Go
99.9%