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

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

Created:
3 years, 10 months ago by xunjieli
Modified:
3 years, 10 months ago
Reviewers:
pauljensen, kapishnikov
CC:
chromium-reviews, cbentzel+watch_chromium.org, agrieve+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/pending/heads/master
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. R=kapishnikov@chromium.org BUG=687600 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Review-Url: https://codereview.chromium.org/2663063009 Cr-Commit-Position: refs/heads/master@{#447554} Committed: https://chromium.googlesource.com/chromium/src/+/5e61cddf30c3bd3490b86f87ff6ea71bf05f0368

Patch Set 1 #

Patch Set 2 : Rename to mHasResponseHeadersOrCompleted #

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 1 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 (9 generated)
xunjieli
Paul, do you have cycle to review this? Thanks!
3 years, 10 months ago (2017-02-01 16:17:47 UTC) #2
pauljensen
On 2017/02/01 16:17:47, xunjieli wrote: > Paul, do you have cycle to review this? > ...
3 years, 10 months ago (2017-02-01 16:20:07 UTC) #5
xunjieli
> Not sure if I'll have a chance in the next week :( Maybe, maybe ...
3 years, 10 months ago (2017-02-01 16:27:05 UTC) #7
kapishnikov
lgtm
3 years, 10 months ago (2017-02-01 17:51:45 UTC) #9
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/2663063009/20001
3 years, 10 months ago (2017-02-01 17:52:28 UTC) #11
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 18:09:51 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/5e61cddf30c3bd3490b86f87ff6e...

Powered by Google App Engine
This is Rietveld 408576698