This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged PR 135566: [2.1] Fix a bug where cancelling read while pipe is…
… empty could result in infinite read loop MSRC 46845 The bug was caused by `examined.Segment == _commitHead` comparison. When pipe is empty and read is cancelld cursors are returned with `null` segment value. Then if memory is allocated from pipe before AdvanceTo is called `examined.Segment == _commitHead` condition would return false resulting in pipe never being observed entirely until the first Flush.
- Loading branch information
Showing
2 changed files
with
36 additions
and
3 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