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

Issue 11112021: Treat 0 returned from HttpStream::ReadResponseBody correctly. (Closed)

Created:
8 years, 2 months ago by pivanof
Modified:
8 years, 2 months ago
Reviewers:
mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, willchan no longer on Chromium
Visibility:
Public.

Description

Treat 0 returned from HttpStream::ReadResponseBody correctly. According to comment to HttpStream::ReadResponseBody() 0 means end of response while HttpResponseBodyDrainer treated it as error. BUG=154712 TEST=net_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162415

Patch Set 1 #

Total comments: 2

Patch Set 2 : Clean sync/async separation. #

Total comments: 7

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -22 lines) Patch
M net/http/http_response_body_drainer.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M net/http/http_response_body_drainer_unittest.cc View 1 2 3 9 chunks +66 lines, -19 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
pivanof
8 years, 2 months ago (2012-10-12 18:12:28 UTC) #1
mmenke
Looks good, but have a suggestion that I think would make the code a little ...
8 years, 2 months ago (2012-10-12 18:55:05 UTC) #2
pivanof
On 2012/10/12 18:55:05, Matt Menke wrote: > Looks good, but have a suggestion that I ...
8 years, 2 months ago (2012-10-12 19:02:05 UTC) #3
mmenke
On 2012/10/12 19:02:05, pivanof wrote: > On 2012/10/12 18:55:05, Matt Menke wrote: > > Looks ...
8 years, 2 months ago (2012-10-12 19:04:42 UTC) #4
mmenke
On 2012/10/12 19:04:42, Matt Menke wrote: > On 2012/10/12 19:02:05, pivanof wrote: > > On ...
8 years, 2 months ago (2012-10-12 19:05:44 UTC) #5
pivanof
On 2012/10/12 19:05:44, Matt Menke wrote: > > > But maybe it's better to make ...
8 years, 2 months ago (2012-10-12 19:07:15 UTC) #6
pivanof
mmenke: please take a look at the modified patch.
8 years, 2 months ago (2012-10-16 13:49:40 UTC) #7
mmenke
This is looking very good, just a couple nits. http://codereview.chromium.org/11112021/diff/10001/net/http/http_response_body_drainer_unittest.cc File net/http/http_response_body_drainer_unittest.cc (right): http://codereview.chromium.org/11112021/diff/10001/net/http/http_response_body_drainer_unittest.cc#newcode136 net/http/http_response_body_drainer_unittest.cc:136: ...
8 years, 2 months ago (2012-10-16 14:41:28 UTC) #8
pivanof
On 2012/10/16 14:41:28, Matt Menke wrote: > http://codereview.chromium.org/11112021/diff/10001/net/http/http_response_body_drainer_unittest.cc > File net/http/http_response_body_drainer_unittest.cc (right): > > http://codereview.chromium.org/11112021/diff/10001/net/http/http_response_body_drainer_unittest.cc#newcode136 ...
8 years, 2 months ago (2012-10-16 15:59:50 UTC) #9
mmenke
On 2012/10/16 15:59:50, pivanof wrote: > On 2012/10/16 14:41:28, Matt Menke wrote: > > > ...
8 years, 2 months ago (2012-10-16 16:29:22 UTC) #10
mmenke
http://codereview.chromium.org/11112021/diff/15001/net/http/http_response_body_drainer_unittest.cc File net/http/http_response_body_drainer_unittest.cc (right): http://codereview.chromium.org/11112021/diff/15001/net/http/http_response_body_drainer_unittest.cc#newcode186 net/http/http_response_body_drainer_unittest.cc:186: if (num_chunks_ != 0) { I suggest you put ...
8 years, 2 months ago (2012-10-16 16:32:24 UTC) #11
mmenke
On 2012/10/16 16:29:22, Matt Menke wrote: > On 2012/10/16 15:59:50, pivanof wrote: > > On ...
8 years, 2 months ago (2012-10-16 16:33:09 UTC) #12
mmenke
On 2012/10/16 16:32:24, Matt Menke wrote: > http://codereview.chromium.org/11112021/diff/15001/net/http/http_response_body_drainer_unittest.cc > File net/http/http_response_body_drainer_unittest.cc (right): > > http://codereview.chromium.org/11112021/diff/15001/net/http/http_response_body_drainer_unittest.cc#newcode186 ...
8 years, 2 months ago (2012-10-16 17:16:58 UTC) #13
pivanof
Now I understand what you tried to say all along. That's a good cleaning of ...
8 years, 2 months ago (2012-10-17 05:29:11 UTC) #14
mmenke
On 2012/10/17 05:29:11, pivanof wrote: > Now I understand what you tried to say all ...
8 years, 2 months ago (2012-10-17 11:57:15 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/paivanof@gmail.com/11112021/23001
8 years, 2 months ago (2012-10-17 13:49:38 UTC) #16
commit-bot: I haz the power
8 years, 2 months ago (2012-10-17 15:48:26 UTC) #17
Change committed as 162415

Powered by Google App Engine
This is Rietveld 408576698