]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.7] net/http: fix unwanted HTTP/2 conn Transport crash after IdleC...
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 19 Aug 2016 23:13:29 +0000 (23:13 +0000)
committerChris Broadfoot <cbro@golang.org>
Wed, 7 Sep 2016 17:49:20 +0000 (17:49 +0000)
commitdc3612e0d1a569e2ad1a3deea9ef6eab72616dc4
tree3ece61331a2afce9df1a141219cca153c65fc4c3
parent6f12826a869aa76e4abee4e1e1dfb27b19775782
[release-branch.go1.7] net/http: fix unwanted HTTP/2 conn Transport crash after IdleConnTimeout

Go 1.7 crashed after Transport.IdleConnTimeout if an HTTP/2 connection
was established but but its caller no longer wanted it. (Assuming the
connection cache was enabled, which it is by default)

Fixes #16208

Change-Id: I9628757f7669e344f416927c77f00ed3864839e3
Reviewed-on: https://go-review.googlesource.com/27450
Reviewed-by: Andrew Gerrand <adg@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-on: https://go-review.googlesource.com/28637
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/transport.go
src/net/http/transport_test.go