commit | 6826f5a7dbc43dc0bbeab569a7fc5a698f32e254 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Thu May 18 14:39:45 2023 -0700 |
committer | Damien Neil <dneil@google.com> | Wed May 24 21:30:25 2023 +0000 |
tree | f364c59f0a276a69fac7499179149d53a8624f49 | |
parent | ca96da60189be7363ed3570858befb1a9bab5892 [diff] |
http2: close request bodies before RoundTrip error return When returning an error from RoundTrip, wait for the close of the request body to complete before returning. This avoids a race between the HTTP/2 transport closing the request body and the net/http retry loop examining the readTrackingBody to see if it has been closed. For golang/go#60041 Change-Id: I8be69ff5056806406716e01e02d1f631deeca088 Reviewed-on: https://go-review.googlesource.com/c/net/+/496335 Run-TryBot: Damien Neil <dneil@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.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.