commit | ab555f366c4508dbe0802550b1b20c46c5c18aa0 | [log] [tgz] |
---|---|---|
author | Brad Fitzpatrick <bradfitz@golang.org> | Wed Jan 10 21:41:16 2018 +0000 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Wed Jan 10 23:22:32 2018 +0000 |
tree | 1963e6664dc7bbb385f95e776b381d10569f4b08 | |
parent | 434ec0c7fe3742c984919a691b2018a6e9694425 [diff] |
http2: add internal function isNoCachedConnError to test for ErrNoCachedConn In a given program there may be two separate copies of ErrNoCachedConn: the h2_bundle.go version in net/http, and the user's golang.org/x/net/http2 version. We need to be able to detect either in net/http. This CL adds a function to report whether an error value represents that type of error, and then a subsequent CL to net/http will use it instead of ==. Updates golang/go#22091 Change-Id: I86f1e20704eee29b8980707b700d7a290107dfd4 Reviewed-on: https://go-review.googlesource.com/87297 Reviewed-by: Tom Bergan <tombergan@google.com>
This repository holds supplementary Go networking libraries.
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
.
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.