forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cronet] Fix BidirectionalStream.flush()
If a flush() is delayed because there is a write pending, we will incorrectly flush data in mPendingQueue as well. This leads to undeterministic behavior in buffer coalescing. This CL makes delayed flush() to only flush mFlushQueue. This CL also fixes a bug where end of stream flag is incorrectly set to true when there is still data in mPendingQueue. This CL adds a regression test. BUG=599902 Review-Url: https://codereview.chromium.org/2078353003 Cr-Commit-Position: refs/heads/master@{#402163}
- Loading branch information
Showing
2 changed files
with
127 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