commit | ae86e92e4a96a51b1de243443c4fbe744f8c7740 | [log] [tgz] |
---|---|---|
author | Jeff Martin <martinjeffrey@google.com> | Mon Aug 28 12:39:29 2023 -0400 |
committer | Jeff Martin <martinjeffrey@google.com> | Thu Aug 31 21:46:57 2023 +0000 |
tree | 806fd6e21dbbf61195da35a0ac806ec8ace5d2fa | |
parent | ec663c7bd9dde1db36af79f8c3247fd9277556fb [diff] |
[zxwait] Wait for done when canceled and closed Prior to this change, canceling pending waiters that were waiting for signals on a closed handled would leave "lingering" packets in the Port's queue. This would occasionally cause future waits to panic as the "done" channel was being closed twice. This CL flags waitingGs whose pending waiters have been canceled, which prevents double cancellation. This enables `Wait` to properly drain the `done` channel when it observes ctx cancellation for waits on a closed handle. Fixed: 132321 Change-Id: I16df9d75835b8e3820b50be9d7a5f2efa265bd84 Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/go/+/908524 Reviewed-by: Bruno Dal Bo <brunodalbo@google.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 4.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.