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

Issue 2173923002: [Cronet] Mark request as complete when OutputStream fails (Closed)

Created:
4 years, 5 months ago by xunjieli
Modified:
4 years, 5 months ago
Reviewers:
pauljensen
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] Mark request as complete when OutputStream fails When consumer specifies a chunked upload or a fixed stream upload, Cronet's HttpURLConnection starts the request right away. If an error happens, we will surface that error as an IOException to consumer. However, if the consumer tries to call any other API (like getResponseCode(), getResponseMessage()) afterwards, we will spin up the message loop and wait forever. This CL marks the request as complete if an error occurred in upload, so getResponseCode() etc. do not spin up the message loop to wait for response. R=pauljensen@chromium.org BUG=630664 Committed: https://crrev.com/7fbfe4fe8ff451d1f65ac574a2304d383aaeec16 Cr-Commit-Position: refs/heads/master@{#407468}

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Total comments: 1

Messages

Total messages: 16 (6 generated)
xunjieli
Paul, PTAL, thanks! I will manually test this on the client app too, and will ...
4 years, 5 months ago (2016-07-22 17:39:04 UTC) #1
xunjieli
On 2016/07/22 17:39:04, xunjieli wrote: > Paul, PTAL, thanks! I will manually test this on ...
4 years, 5 months ago (2016-07-22 18:40:14 UTC) #5
pauljensen
https://codereview.chromium.org/2173923002/diff/1/components/cronet/android/test/javatests/src/org/chromium/net/urlconnection/CronetFixedModeOutputStreamTest.java File components/cronet/android/test/javatests/src/org/chromium/net/urlconnection/CronetFixedModeOutputStreamTest.java (right): https://codereview.chromium.org/2173923002/diff/1/components/cronet/android/test/javatests/src/org/chromium/net/urlconnection/CronetFixedModeOutputStreamTest.java#newcode110 components/cronet/android/test/javatests/src/org/chromium/net/urlconnection/CronetFixedModeOutputStreamTest.java:110: } catch (IOException e) { should there be a ...
4 years, 5 months ago (2016-07-22 18:54:29 UTC) #6
xunjieli
Great catch! I found that the first fail() doesn't work correctly for Cronet because once ...
4 years, 5 months ago (2016-07-22 20:01:09 UTC) #7
xunjieli
Also there is a bit of code duplication between chunked upload and fixed mode upload. ...
4 years, 5 months ago (2016-07-22 20:15:24 UTC) #8
pauljensen
lgtm
4 years, 5 months ago (2016-07-25 11:43:31 UTC) #9
xunjieli
On 2016/07/25 11:43:31, pauljensen wrote: > lgtm Thanks for the review!
4 years, 5 months ago (2016-07-25 13:27:18 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/2173923002/20001
4 years, 5 months ago (2016-07-25 13:27:42 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-25 14:00:08 UTC) #14
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 14:01:37 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7fbfe4fe8ff451d1f65ac574a2304d383aaeec16
Cr-Commit-Position: refs/heads/master@{#407468}

Powered by Google App Engine
This is Rietveld 408576698