]> Cypherpunks repositories - gostls13.git/commit
Revert "io: allocate copy buffers from a pool"
authorDamien Neil <dneil@google.com>
Thu, 9 Feb 2023 22:24:46 +0000 (14:24 -0800)
committerDamien Neil <dneil@google.com>
Fri, 10 Feb 2023 16:34:44 +0000 (16:34 +0000)
commitb02d5d325a4e93c88ecfc83a094c252148caa748
treeacd16cfa1d3a7dac9dc014a02b15abc7ff054c40
parent6e5c26084f9f3bc910181854a4ff20851188e222
Revert "io: allocate copy buffers from a pool"

This reverts CL 456555.

Reason for revert: This seems too likely to exercise race conditions
in code where a Write call continues to access its buffer after
returning. The HTTP/2 ResponseWriter is one such example.

Reverting this change while we think about this some more.

For #57202

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