]> Cypherpunks repositories - gostls13.git/commit
net/http: make Transport.MaxConnsPerHost work for HTTP/2
authorMichael Fraenkel <michael.fraenkel@gmail.com>
Sat, 6 Oct 2018 17:32:19 +0000 (13:32 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 30 Apr 2019 23:25:55 +0000 (23:25 +0000)
commit43b9fcf6fe9feb0ec67a7ddb01e5b542542b47c8
tree2279d8cbf82e67312514657b0381edbcf7922a3b
parentc706d422899e82c71578e30715684b7a991f4490
net/http: make Transport.MaxConnsPerHost work for HTTP/2

Treat HTTP/2 connections as an ongoing persistent connection. When we
are told there is no cached connections, cleanup the associated
connection and host connection count.

Fixes #27753

Change-Id: I6b7bd915fc7819617cb5d3b35e46e225c75eda29
Reviewed-on: https://go-review.googlesource.com/c/go/+/140357
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/transport.go
src/net/http/transport_test.go