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

Issue 2666323003: [Cronet] Fix CronetHttpURLConnection#getResponse() hang (Closed)

Created:
3 years, 10 months ago by xunjieli
Modified:
3 years, 10 months ago
Reviewers:
kapishnikov, mef
CC:
chromium-reviews, cbentzel+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/branch-heads/2987
Project:
chromium
Visibility:
Public.

Description

[Cronet] Fix CronetHttpURLConnection#getResponse() hang This CL fixes a hang case where both request body and response body are zero-length. |mHasResponseHeadersOrCompleted| was only properly set if client always reads response body. This is a false assumption. This CL moves setting of |mHasResponseHeadersOrCompleted| to onResponseStarted() callback. BUG=687600 NOTRY=true NOPRESUBMIT=true Review-Url: https://codereview.chromium.org/2663063009 Cr-Commit-Position: refs/heads/master@{#447554} (cherry picked from commit 5e61cddf30c3bd3490b86f87ff6ea71bf05f0368) CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Review-Url: https://codereview.chromium.org/2666323003 Cr-Commit-Position: refs/branch-heads/2987@{#251} Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943} Committed: https://chromium.googlesource.com/chromium/src/+/4a744fb52679ebf065e6d910a26d58396b715dc1

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -8 lines) Patch
M components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java View 5 chunks +9 lines, -8 lines 0 comments Download
M components/cronet/android/test/javatests/src/org/chromium/net/urlconnection/CronetFixedModeOutputStreamTest.java View 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
xunjieli
+mef@. Misha: can I merge this CL into M57?
3 years, 10 months ago (2017-02-01 18:24:23 UTC) #3
mef
On 2017/02/01 18:24:23, xunjieli wrote: > +mef@. Misha: can I merge this CL into M57? ...
3 years, 10 months ago (2017-02-01 18:41:39 UTC) #4
xunjieli
On 2017/02/01 18:41:39, mef wrote: > On 2017/02/01 18:24:23, xunjieli wrote: > > +mef@. Misha: ...
3 years, 10 months ago (2017-02-01 18:52:04 UTC) #5
mef
On 2017/02/01 18:52:04, xunjieli wrote: > On 2017/02/01 18:41:39, mef wrote: > > On 2017/02/01 ...
3 years, 10 months ago (2017-02-01 19:14:16 UTC) #6
xunjieli
On 2017/02/01 19:14:16, mef wrote: > On 2017/02/01 18:52:04, xunjieli wrote: > > On 2017/02/01 ...
3 years, 10 months ago (2017-02-01 19:16:17 UTC) #7
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/2666323003/1
3 years, 10 months ago (2017-02-01 19:17:50 UTC) #12
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 19:26:13 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/4a744fb52679ebf065e6d910a26d...

Powered by Google App Engine
This is Rietveld 408576698