Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpcc: Fix potential deadlock in stream Sync (#134)
* rpcc: Fix potential deadlock in stream Sync The simplified Conn mutex handling introduced in #74 incorrectly moved the mutex Unlock to after stream.write. This created the opportunity for a racy mutex deadlock scenario with simultaneous writes to stream while `Sync` is being performed. Due to it's racyness, this was only occasionally caught by `TestStreamSyncNotifyDeadlock` and evaded detection. * rpcc: Improve odds of deadlock in TestStreamSyncNotifyDeadlock
- Loading branch information
Showing
2 changed files
with
17 additions
and
12 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
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