Chromium Code Reviews
Description[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
Committed: https://crrev.com/22220beab4feedd951cb23fc2a03019174f18ce0
Cr-Commit-Position: refs/heads/master@{#402163}
Patch Set 1 #
Total comments: 5
Patch Set 2 : Address comments #
Total comments: 6
Patch Set 3 : Address comments #Patch Set 4 : self review #
Messages
Total messages: 16 (6 generated)
|
||||||||||||||||||||||||||||