commit | 547e7edf3873d6f3a9c093d3785f9e2289e00746 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Thu Feb 09 11:20:23 2023 -0800 |
committer | Damien Neil <dneil@google.com> | Mon Feb 13 18:55:50 2023 +0000 |
tree | 762dce5e8b2d8b3742b503dd7cdd9fabb2a6240f | |
parent | 39940adcaaa73e661124cb80fb8dd57ea929dbaf [diff] |
http2: avoid referencing ResponseWrite.Write parameter after returning When writing data frames, encode the frame on the serve goroutine rather than in writeFrameAsync to avoid referencing stream data (originating from a ResponseWriter.Write call) after the Write has returned. Fixes golang/go#58446 Change-Id: I866a7351c90ef122e506b333151f98a455a64953 Reviewed-on: https://go-review.googlesource.com/c/net/+/467355 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Damien Neil <dneil@google.com> Reviewed-by: Bryan Mills <bcmills@google.com>
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.