]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.12] internal/poll: fix deadlock in Write if len(buf) > maxRW
authorIan Lance Taylor <iant@golang.org>
Wed, 3 Apr 2019 22:30:13 +0000 (15:30 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 4 Apr 2019 02:24:05 +0000 (02:24 +0000)
commit499088f6dd4cf11e8dfeba23b6d6076144d24390
treecd27693d30166417a1b85cf71807ea0e19a1df3c
parent991583017c856a14431382794a2a2f98ca52e537
[release-branch.go1.12] internal/poll: fix deadlock in Write if len(buf) > maxRW

fd.l.Lock shouldn't be called in a loop.

Manual backport of CL 165598. It could not be cherry-picked due to conflicts.

Fixes #31211

Change-Id: Ib76e679f6a276b32fe9c1594b7e9a506017a7967
Reviewed-on: https://go-review.googlesource.com/c/go/+/170680
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/internal/poll/fd_windows.go