commit | 7fa635bd2621428e6b8528111446dcdd91910203 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Wed May 08 09:36:40 2024 -0700 |
committer | Damien Neil <dneil@google.com> | Wed May 08 17:52:51 2024 +0000 |
tree | f90b39aac8b6e48b530cc6c1b4093c5a45ba905d | |
parent | d27919b57fa8dd03198f85ca9e675e1a09babd7d [diff] |
http2: avoid panic on h2c upgrade failure When performing an h2c upgrade, we would panic if an error occurred reading the client preface. *serverConn.closeStream assumes that a conn with an IdleTimeout > 0 will have an idleTimer, but in the h2c upgrade case the stream may have been created before the timer. Fixes golang/go#67168 Change-Id: I30b5a701c10753ddc344079b9498285f099155cf Reviewed-on: https://go-review.googlesource.com/c/net/+/584255 Reviewed-by: Jonathan Amsterdam <jba@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
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.