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

Issue 2007013003: Introduce error handling in HttpStreamParser on UploadDataStream::Read() failure. (Closed)

Created:
4 years, 6 months ago by maksims (do not use this acc)
Modified:
4 years, 6 months ago
Reviewers:
mmenke
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

Introduce error handling in HttpStreamParser on UploadDataStream::Read() failure. HttpStreamParser was written with the assumption UploadDataStream::Read() never fails, which the UploadDataStream API currently guarantees. Instead, on read errors, UploadDataStream zero pads the response, resulting in sending corrupted data. We're working on changing the UploadDataStream API so that Read will return errors on failures. This cl introduces error handling in HttpStreamParser class after UploadDataStream::Read() starts returning errors if read fails. There are several reviews for 3 streams: SpdyHttpStream: https://codereview.chromium.org/2022053002/ HttpStreamParser https://codereview.chromium.org/2007013003/ <------ current QuicHttpStream https://codereview.chromium.org/2035643002/ And the main change in UploadDataStream: https://codereview.chromium.org/2030353002/ BUG=517615 Committed: https://crrev.com/52fcdc5e13fb7a0334ead130d73a4e41d1b83549 Cr-Commit-Position: refs/heads/master@{#401550}

Patch Set 1 #

Total comments: 31

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : added upload_data_stream.cc/h in order to be able to land the cl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -13 lines) Patch
M net/base/upload_data_stream.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M net/base/upload_data_stream.cc View 1 2 3 1 chunk +9 lines, -8 lines 0 comments Download
M net/http/http_stream_parser.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M net/http/http_stream_parser_unittest.cc View 1 2 3 1 chunk +103 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (22 generated)
mmenke
This looks really good to me, just a bunch of nits. https://codereview.chromium.org/2007013003/diff/1/net/base/net_error_list.h File net/base/net_error_list.h (right): ...
4 years, 6 months ago (2016-05-24 17:13:48 UTC) #2
maksims (do not use this acc)
Please review. https://codereview.chromium.org/2007013003/diff/1/net/base/net_error_list.h File net/base/net_error_list.h (right): https://codereview.chromium.org/2007013003/diff/1/net/base/net_error_list.h#newcode116 net/base/net_error_list.h:116: NET_ERROR(FILE_READ_FAIL, -28) On 2016/05/24 17:13:47, mmenke wrote: ...
4 years, 6 months ago (2016-05-25 07:13:38 UTC) #6
mmenke
Want to do a final quick pass after you respond to these, out of paranoia, ...
4 years, 6 months ago (2016-05-25 15:13:31 UTC) #7
maksims (do not use this acc)
please take a look https://codereview.chromium.org/2007013003/diff/40001/net/http/http_stream_parser.cc File net/http/http_stream_parser.cc (right): https://codereview.chromium.org/2007013003/diff/40001/net/http/http_stream_parser.cc#newcode295 net/http/http_stream_parser.cc:295: DCHECK_GT(consumed, 0); On 2016/05/25 15:13:31, ...
4 years, 6 months ago (2016-05-26 08:54:41 UTC) #8
mmenke
LGTM! Good job on the tests, especially. Could you update the second paragraph in the ...
4 years, 6 months ago (2016-05-26 14:57:16 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007013003/80001
4 years, 6 months ago (2016-06-22 04:35:40 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-simulator-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-gn/builds/24828)
4 years, 6 months ago (2016-06-22 04:57:57 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007013003/100001
4 years, 6 months ago (2016-06-23 05:17:10 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007013003/120001
4 years, 6 months ago (2016-06-23 05:20:34 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:120001)
4 years, 6 months ago (2016-06-23 06:29:15 UTC) #31
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 06:31:14 UTC) #33
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/52fcdc5e13fb7a0334ead130d73a4e41d1b83549
Cr-Commit-Position: refs/heads/master@{#401550}

Powered by Google App Engine
This is Rietveld 408576698