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

Issue 2131323002: [Cronet] Check whether request is done before spinning up message loop (Closed)

Created:
4 years, 5 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] Check whether request is done before spinning up message loop When client writes to OutputStream, the request might have already completed. If that is the case, do not spin up the message loop since that will block the calling thread forever. This CL also adds tests. R=kapishnikov@chromium.org R=mef@chromium.org BUG=626653 Committed: https://crrev.com/b08d71cee8ab485bc4bf6872d01be9fe8b4df296 Cr-Commit-Position: refs/heads/master@{#404652}

Patch Set 1 : self review #

Total comments: 4

Patch Set 2 : address comments #

Total comments: 4

Patch Set 3 : Address comment #

Messages

Total messages: 20 (11 generated)
xunjieli
Andrei, Misha: Paul usually reviews HttpURLConnection wrapper CL, but since he is out, could you ...
4 years, 5 months ago (2016-07-08 17:31:06 UTC) #2
mef
https://codereview.chromium.org/2131323002/diff/20001/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetBufferedOutputStream.java File components/cronet/android/java/src/org/chromium/net/urlconnection/CronetBufferedOutputStream.java (right): https://codereview.chromium.org/2131323002/diff/20001/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetBufferedOutputStream.java#newcode74 components/cronet/android/java/src/org/chromium/net/urlconnection/CronetBufferedOutputStream.java:74: super.write(oneByte); Maybe just explicitly call checkNotClosed() here and elsewhere.
4 years, 5 months ago (2016-07-08 17:39:10 UTC) #4
mef
https://codereview.chromium.org/2131323002/diff/20001/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java File components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java (right): https://codereview.chromium.org/2131323002/diff/20001/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java#newcode505 components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java:505: private void setRequestCompleted(IOException exception) { Why the rename? Can ...
4 years, 5 months ago (2016-07-08 17:42:06 UTC) #5
xunjieli
Thanks for the review! PTAL. https://codereview.chromium.org/2131323002/diff/20001/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetBufferedOutputStream.java File components/cronet/android/java/src/org/chromium/net/urlconnection/CronetBufferedOutputStream.java (right): https://codereview.chromium.org/2131323002/diff/20001/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetBufferedOutputStream.java#newcode74 components/cronet/android/java/src/org/chromium/net/urlconnection/CronetBufferedOutputStream.java:74: super.write(oneByte); On 2016/07/08 17:39:10, ...
4 years, 5 months ago (2016-07-08 17:56:26 UTC) #6
mef
lgtm mod questions. https://codereview.chromium.org/2131323002/diff/60001/components/cronet/android/test/javatests/src/org/chromium/net/urlconnection/CronetChunkedOutputStreamTest.java File components/cronet/android/test/javatests/src/org/chromium/net/urlconnection/CronetChunkedOutputStreamTest.java (right): https://codereview.chromium.org/2131323002/diff/60001/components/cronet/android/test/javatests/src/org/chromium/net/urlconnection/CronetChunkedOutputStreamTest.java#newcode104 components/cronet/android/test/javatests/src/org/chromium/net/urlconnection/CronetChunkedOutputStreamTest.java:104: // Expected. Maybe assert that thrown ...
4 years, 5 months ago (2016-07-08 22:19:10 UTC) #8
xunjieli
Thanks! https://codereview.chromium.org/2131323002/diff/60001/components/cronet/android/test/javatests/src/org/chromium/net/urlconnection/CronetChunkedOutputStreamTest.java File components/cronet/android/test/javatests/src/org/chromium/net/urlconnection/CronetChunkedOutputStreamTest.java (right): https://codereview.chromium.org/2131323002/diff/60001/components/cronet/android/test/javatests/src/org/chromium/net/urlconnection/CronetChunkedOutputStreamTest.java#newcode104 components/cronet/android/test/javatests/src/org/chromium/net/urlconnection/CronetChunkedOutputStreamTest.java:104: // Expected. On 2016/07/08 22:19:10, mef wrote: > ...
4 years, 5 months ago (2016-07-11 13:17:36 UTC) #10
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/2131323002/80001
4 years, 5 months ago (2016-07-11 14:13:45 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 5 months ago (2016-07-11 14:17:27 UTC) #18
commit-bot: I haz the power
4 years, 5 months ago (2016-07-11 14:18:34 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b08d71cee8ab485bc4bf6872d01be9fe8b4df296
Cr-Commit-Position: refs/heads/master@{#404652}

Powered by Google App Engine
This is Rietveld 408576698