commit | 27dd8689420fcde088514397d015e4fea5174e0e | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Fri Oct 29 10:23:10 2021 -0700 |
committer | Damien Neil <dneil@google.com> | Fri Feb 25 17:22:49 2022 +0000 |
tree | 8bba95c3b9383242e742edb703576ccab5993849 | |
parent | 3bcbab3f74ef4651264aef8be5fc76d0495943cd [diff] |
http2: improve handling of slow-closing net.Conns Closing a *tls.Conn can write to the network, blocking indefinitely. Don't hold cc.mu while closing Conns. If closing a *tls.Conn takes too long (arbitrarily set at 250ms), try to acquire the underlying net.Conn (Go 1.18+) and close it instead. Change-Id: Ib4e4a26595108eba9cd767231c727fd9412658b5 Reviewed-on: https://go-review.googlesource.com/c/net/+/359636 Trust: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Trust: 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.