commit | 69e39bad7dc2bbb411fa35755c46020969029fa7 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Fri Nov 05 10:13:53 2021 -0700 |
committer | Damien Neil <dneil@google.com> | Fri Nov 12 20:21:33 2021 +0000 |
tree | 660be4deea97af0a15087caa878a11b19a467f52 | |
parent | f0573a1506aed9f8168fbd7d5e757448db58b427 [diff] |
http2: close conns after use when req.Close is set Avoid reusing connections after receiving a response to a request for which cc.Close is set or a "Connection: close" header is present. Adjust the tests for connection reuse to test both the case where new conns are created by the http2 package and when they are created by the net/http package. Fixes golang/go#49375 Change-Id: I58594972c832a20b66a3910c17acb51a98a9f7a5 Reviewed-on: https://go-review.googlesource.com/c/net/+/361498 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>
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.