diff options
author | Bhasker Hariharan <bhaskerh@google.com> | 2019-06-04 16:16:24 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-06-04 16:17:24 -0700 |
commit | e0fb921205b79f401375544652e4de8077162292 (patch) | |
tree | 10e51ffa7d84894cf360076e4fa839c0f60bdcb7 /pkg/sleep | |
parent | 7398f013f043cfe43b5fc615bd24b641df17e6bc (diff) |
Fix data race in synRcvdState.
When checking the length of the acceptedChan we should hold the
endpoint mutex otherwise a syn received while the listening socket
is being closed can result in a data race where the cleanupLocked
routine sets acceptedChan to nil while a handshake goroutine
in progress could try and check it at the same time.
PiperOrigin-RevId: 251537697
Diffstat (limited to 'pkg/sleep')
0 files changed, 0 insertions, 0 deletions