commit | b952594c266f3a75031e9ba2b43483a735526d39 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Mon Nov 20 15:52:36 2023 -0800 |
committer | Damien Neil <dneil@google.com> | Mon Dec 18 17:09:09 2023 +0000 |
tree | 0f5fe1d2bae91c082e396d091d9579918431d259 | |
parent | 577e44a5cee023bd639dd2dcc4008644bcb71472 [diff] |
quic: fix data race in connection close We were failing to hold streamsState.streamsMu when removing a closed stream from the conn's stream map. Rework this to remove the mutex entirely. The only access to the map that isn't on the conn's loop is during stream creation. Send a message to the loop to register the stream instead of using a mutex. Change-Id: I2e87089e87c61a6ade8219dfb8acec3809bf95de Reviewed-on: https://go-review.googlesource.com/c/net/+/545217 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Jonathan Amsterdam <jba@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.