Files
golang.net/http2
Damien Neil 107f3e3c3b http2: don't return from RoundTrip until request body is closed
Moving the Request.Body.Close call out from the ClientConn mutex
results in some cases where RoundTrip returns while the Close is
still in progress. This should be legal (RoundTrip explicitly allows
for this), but net/http relies on Close never being called after
RoundTrip returns.

Add additional synchronization to ensure Close calls complete
before RoundTrip returns.

Fixes golang/go#55896

Change-Id: Ie3d4773966745e83987d219927929cb56ec1a7ad
Reviewed-on: https://go-review.googlesource.com/c/net/+/435535
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-09-30 21:31:12 +00:00
..
2022-08-02 22:28:14 +00:00
2021-07-26 21:34:35 +00:00
2022-08-02 22:28:14 +00:00
2018-01-24 06:09:56 +00:00
2015-10-14 04:32:53 +00:00
2022-08-02 22:28:14 +00:00
2021-02-20 03:31:24 +00:00
2015-10-14 04:32:53 +00:00
2022-08-02 22:28:14 +00:00
2021-02-20 03:31:24 +00:00
2021-10-04 16:44:53 +00:00