]> Cypherpunks repositories - gostls13.git/commit
net/http: fix "http2: no cached connection..." error with x/net/http2
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 10 Jan 2018 21:50:13 +0000 (21:50 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 10 Jan 2018 23:24:51 +0000 (23:24 +0000)
commitbb4356dbfd03343bef39746f9937e57c93453e97
tree295a7f5d4ad5eb3d83dc216464cd8eb74b4d1f96
parent1b89dada1ae7e2378a06f0ffeebb31f925fb08e9
net/http: fix "http2: no cached connection..." error with x/net/http2

The net/http Transport was testing for a sentinel x/net/http2 error
value with ==, which meant it was only testing the bundled version. If
a user enabled http2 via golang.org/x/net/http2, the error value had a
different name.

This also updates the bundled x/net/http2 to git rev ab555f36 for:

    http2: add internal function isNoCachedConnError to test for ErrNoCachedConn
    https://golang.org/cl/87297

Fixes #22091

Change-Id: I3fb85e2b7ba7d145dd66767e1795a56de633958c
Reviewed-on: https://go-review.googlesource.com/87298
Reviewed-by: Tom Bergan <tombergan@google.com>
src/net/http/h2_bundle.go
src/net/http/transport.go
src/net/http/transport_internal_test.go