Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Issue 2078353003: [Cronet] Fix BidirectionalStream.flush() (Closed)

Created:
4 years, 6 months ago by xunjieli
Modified:
4 years, 5 months ago
Reviewers:
kapishnikov, mef
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -3 lines) Patch
M components/cronet/android/java/src/org/chromium/net/CronetBidirectionalStream.java View 1 2 5 chunks +42 lines, -3 lines 0 comments Download
M components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamTest.java View 1 2 3 1 chunk +85 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
xunjieli
Misha, Andrei: PTAL. Thanks!
4 years, 6 months ago (2016-06-20 16:50:12 UTC) #4
mef
Sorry, forgot to mail yesterday. https://codereview.chromium.org/2078353003/diff/40001/components/cronet/android/java/src/org/chromium/net/CronetBidirectionalStream.java File components/cronet/android/java/src/org/chromium/net/CronetBidirectionalStream.java (right): https://codereview.chromium.org/2078353003/diff/40001/components/cronet/android/java/src/org/chromium/net/CronetBidirectionalStream.java#newcode87 components/cronet/android/java/src/org/chromium/net/CronetBidirectionalStream.java:87: private LinkedList<ByteBuffer> mPendingQueue; Any ...
4 years, 6 months ago (2016-06-21 21:12:27 UTC) #5
xunjieli
Thanks for the review! PTAL https://codereview.chromium.org/2078353003/diff/40001/components/cronet/android/java/src/org/chromium/net/CronetBidirectionalStream.java File components/cronet/android/java/src/org/chromium/net/CronetBidirectionalStream.java (right): https://codereview.chromium.org/2078353003/diff/40001/components/cronet/android/java/src/org/chromium/net/CronetBidirectionalStream.java#newcode87 components/cronet/android/java/src/org/chromium/net/CronetBidirectionalStream.java:87: private LinkedList<ByteBuffer> mPendingQueue; On ...
4 years, 6 months ago (2016-06-22 14:26:47 UTC) #6
xunjieli
Misha, Andrei: A friendly ping?
4 years, 6 months ago (2016-06-24 17:57:19 UTC) #7
mef
Looks pretty good. I'm still not sold on Data -> Queue rename, partially because it ...
4 years, 6 months ago (2016-06-24 19:36:30 UTC) #8
xunjieli
Thanks for the review! I've reverted to the old naming scheme and changed the *ForTesting() ...
4 years, 6 months ago (2016-06-24 20:48:23 UTC) #10
mef
lgtm
4 years, 6 months ago (2016-06-24 23:30:07 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2078353003/120001
4 years, 5 months ago (2016-06-27 13:22:56 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:120001)
4 years, 5 months ago (2016-06-27 13:59:23 UTC) #14
commit-bot: I haz the power
4 years, 5 months ago (2016-06-27 14:01:01 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/22220beab4feedd951cb23fc2a03019174f18ce0
Cr-Commit-Position: refs/heads/master@{#402163}

Powered by Google App Engine
This is Rietveld 408576698