commit | d17aebf46d8d0f55cbd205be4482c632527eca27 | [log] [tgz] |
---|---|---|
author | Richard Miller <miller.research@gmail.com> | Tue Jun 02 10:34:09 2020 +0100 |
committer | David du Colombier <0intro@gmail.com> | Tue Jun 02 12:10:28 2020 +0000 |
tree | cfa823416c1add7425e831620ae5b62010756c6c | |
parent | 0eb9767caad4c4a0b447824d7b27328864612d58 [diff] |
internal/poll: add mutex to prevent SetDeadline race in Plan 9 There are data races on fd.[rw]aio and fd.[rw]timedout when Read/Write is called on a polled fd concurrently with SetDeadline (see #38769). Adding a mutex around accesses to each pair (read and write) prevents the race, which was causing deadlocks in net/http tests on the builders. Updates #38769. Change-Id: I31719b3c9a664e81a775cda583cff31c0da946c4 Reviewed-on: https://go-review.googlesource.com/c/go/+/235820 Run-TryBot: David du Colombier <0intro@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: David du Colombier <0intro@gmail.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 3.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://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.