-
Notifications
You must be signed in to change notification settings - Fork 17.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
1 changed file
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters