]> Cypherpunks repositories - gostls13.git/commit
net/http: avoid leaking the writing goroutine
authorMichael Fraenkel <michael.fraenkel@gmail.com>
Fri, 28 Apr 2023 13:14:08 +0000 (07:14 -0600)
committerGopher Robot <gobot@golang.org>
Tue, 2 May 2023 12:56:19 +0000 (12:56 +0000)
commitc63066123bb5c2ef7a6d26d1a6e3e5f1012a1e23
tree23081ee39ba1f3a70c696f684605ad97c787cc21
parent46f60d650616b192c74bf8960df6e0bb99be2a9b
net/http: avoid leaking the writing goroutine

The test will wait for all goroutines.
A race can occur if the writing goroutine uses the Log after the test exits.

For #58264
For #59883
For #59884

Change-Id: I9b8ec7c9d024ff74b922b69efa438be5a4fa3483
Reviewed-on: https://go-review.googlesource.com/c/go/+/490255
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
src/net/http/serve_test.go