commit | f486391704dcfa95dab69d779cb1574e3c1f7db1 | [log] [tgz] |
---|---|---|
author | Nikola Jokic <jokicnikola07@gmail.com> | Thu Aug 18 14:28:45 2022 +0200 |
committer | Damien Neil <dneil@google.com> | Tue Sep 27 17:12:03 2022 +0000 |
tree | 771ac4772b08c2c9d3f12881b0830caeaaa643f1 | |
parent | aa73b25870363f4e253fca24ea0bb2b3c0493843 [diff] |
http2: improved Request.Body.Close not to hold lock on connection The existing implementation holds a lock on a connection which causes issues on a slow Request.Body.Close call. Unlock before Request.Body.Close call. The abortStream closes the request body after unlocking a mutex. The abortStreamLocked returns reqBody as io.ReadCloser if the caller needs to close the body after unlocking the mutex. Fixes golang/go#52853 Change-Id: I0b74ba5263f65393c0e69e1c645d10c4db048903 Reviewed-on: https://go-review.googlesource.com/c/net/+/424755 Reviewed-by: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> TryBot-Result: Gopher Robot <gobot@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.