Closed
Description
The HTTP/2 ResponseWriter
can access the contents of the slice passed to Write
after Write
returns.
- When closing a stream while a write is in progress.
- When shutting down the server while a write is in progress.
This is a violation of the io.Writer
contract, and responsible for a number of recent net/http
flakes.
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
gopherbot commentedon Feb 9, 2023
Change https://go.dev/cl/467055 mentions this issue:
http2: wait for in-progress writes after a stream is closed
net/http.(*http2Framer).WriteDataPadded
#58168gopherbot commentedon Feb 10, 2023
Change https://go.dev/cl/467355 mentions this issue:
http2: avoid referencing ResponseWrite.Write parameter after returning
gopherbot commentedon Feb 13, 2023
Change https://go.dev/cl/467657 mentions this issue:
all: update vendored golang.org/x/net
all: update vendored golang.org/x/net
all: update vendored golang.org/x/net