commit | f0573a1506aed9f8168fbd7d5e757448db58b427 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Mon Nov 08 11:09:45 2021 -0800 |
committer | Damien Neil <dneil@google.com> | Fri Nov 12 20:21:18 2021 +0000 |
tree | d636e91348f7e1394bc62a738d0024647f2e314b | |
parent | 58aab5ef257a41e2349a0e8a550faf708523c75e [diff] |
http2: avoid spurious context cancelation error from Response.Body.Close When a request has a deadline set, the net/http package can cancel the request context after reading an error (including io.EOF) from the response body. Avoid returning a spurious error from transportResponseBody if the request context is canceled. For golang/go#49366. Change-Id: I645466a1d6e405bdf17b3cc087204e4622a140eb Reviewed-on: https://go-review.googlesource.com/c/net/+/362354 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.