Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[internal-branch.go1.17-vendor] http2: close the Request's Body when …
…aborting a stream After RoundTrip returns, closing the Response's Body should interrupt any ongoing write of the request body. Close the Request's Body to unblock the body writer. Take additional care around the use of a Request after its Response's Body has been closed. The RoundTripper contract permits the caller to modify the request after the Response's body has been closed. Updates golang/go#49077 Change-Id: I261e08eb5d70016b49942d72833f46b2ae83962a Reviewed-on: https://go-review.googlesource.com/c/net/+/355491 Trust: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-on: https://go-review.googlesource.com/c/net/+/357690 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
- Loading branch information