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

Issue 2030353002: UploadDataStream now returns errors on failures (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

Make UploadElementsDataStream return errors on failures. It previously zero-padded the response on errors, which had the effect of uploading corrupted data, without indicating there was a problem to consumers. Three earlier CLs upload consumers of this class to support this new behavior: HttpStreamParser https://codereview.chromium.org/2007013003/ SpdyHttpStream: https://codereview.chromium.org/2022053002/ QuicHttpStream https://codereview.chromium.org/2035643002/ And main change in ElementsUploadDataStream https://codereview.chromium.org/2030353002/ <------ current BUG=517615 Committed: https://crrev.com/e869bf5e1c460baf8a96f5b00407a76dad7e7ef8 Cr-Commit-Position: refs/heads/master@{#401636}

Patch Set 1 #

Patch Set 2 : comments in the header #

Total comments: 8

Patch Set 3 : Matt's comments, rebasing + fixed unittests #

Total comments: 10

Patch Set 4 : fixed issues and combined with HttpStreamParser cl due to dependencies #

Total comments: 1

Patch Set 5 : removing net::OK check #

Patch Set 6 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -53 lines) Patch
M net/base/elements_upload_data_stream.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/elements_upload_data_stream.cc View 1 2 3 4 5 chunks +8 lines, -16 lines 0 comments Download
M net/base/elements_upload_data_stream_unittest.cc View 1 2 3 4 3 chunks +26 lines, -27 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -8 lines 0 comments Download

Messages

Total messages: 67 (32 generated)
maksims (do not use this acc)
Done, please take a look
4 years, 6 months ago (2016-06-03 12:01:01 UTC) #9
maksims (do not use this acc)
On 2016/06/03 12:01:01, maksims wrote: > Done, please take a look not ptal. forgotten about ...
4 years, 6 months ago (2016-06-03 13:03:36 UTC) #10
mmenke
On 2016/06/03 13:03:36, maksims wrote: > On 2016/06/03 12:01:01, maksims wrote: > > Done, please ...
4 years, 6 months ago (2016-06-03 13:09:21 UTC) #11
maksims (do not use this acc)
On 2016/06/03 13:09:21, mmenke wrote: > On 2016/06/03 13:03:36, maksims wrote: > > On 2016/06/03 ...
4 years, 6 months ago (2016-06-06 09:14:01 UTC) #16
mmenke
https://codereview.chromium.org/2030353002/diff/20001/net/base/elements_upload_data_stream.cc File net/base/elements_upload_data_stream.cc (right): https://codereview.chromium.org/2030353002/diff/20001/net/base/elements_upload_data_stream.cc#newcode153 net/base/elements_upload_data_stream.cc:153: read_failed_ = true; Instead of just setting read_failed_ to ...
4 years, 6 months ago (2016-06-06 16:22:33 UTC) #20
mmenke
Oh, and I plan to take a look at the tests, too, but may not ...
4 years, 6 months ago (2016-06-06 16:23:41 UTC) #21
maksims (do not use this acc)
On 2016/06/06 16:23:41, mmenke wrote: > Oh, and I plan to take a look at ...
4 years, 6 months ago (2016-06-06 16:49:54 UTC) #22
mmenke
On 2016/06/06 16:49:54, maksims wrote: > On 2016/06/06 16:23:41, mmenke wrote: > > Oh, and ...
4 years, 6 months ago (2016-06-15 16:05:15 UTC) #23
maksims (do not use this acc)
On 2016/06/15 16:05:15, mmenke wrote: > On 2016/06/06 16:49:54, maksims wrote: > > On 2016/06/06 ...
4 years, 6 months ago (2016-06-15 16:08:47 UTC) #24
maksims (do not use this acc)
ptal. Tests are here https://codereview.chromium.org/2077353002/ https://codereview.chromium.org/2030353002/diff/20001/net/base/elements_upload_data_stream.cc File net/base/elements_upload_data_stream.cc (right): https://codereview.chromium.org/2030353002/diff/20001/net/base/elements_upload_data_stream.cc#newcode153 net/base/elements_upload_data_stream.cc:153: read_failed_ = true; On ...
4 years, 6 months ago (2016-06-21 11:09:25 UTC) #29
maksims (do not use this acc)
By the way, how will I commit the patch? Should I create a separate CL ...
4 years, 6 months ago (2016-06-21 11:10:24 UTC) #30
mmenke
On 2016/06/21 11:10:24, maksims wrote: > By the way, how will I commit the patch? ...
4 years, 6 months ago (2016-06-21 15:29:37 UTC) #31
mmenke
On 2016/06/21 15:29:37, mmenke wrote: > On 2016/06/21 11:10:24, maksims wrote: > > By the ...
4 years, 6 months ago (2016-06-21 20:47:11 UTC) #32
mmenke
This looks good! I'll sign off on this once the others are landed. https://codereview.chromium.org/2030353002/diff/250001/net/base/elements_upload_data_stream.cc File ...
4 years, 6 months ago (2016-06-21 21:13:14 UTC) #33
maksims (do not use this acc)
https://codereview.chromium.org/2030353002/diff/250001/net/base/elements_upload_data_stream.cc File net/base/elements_upload_data_stream.cc (right): https://codereview.chromium.org/2030353002/diff/250001/net/base/elements_upload_data_stream.cc#newcode106 net/base/elements_upload_data_stream.cc:106: while (!read_failed_ && element_index_ < element_readers_.size()) { On 2016/06/21 ...
4 years, 6 months ago (2016-06-22 15:10:32 UTC) #41
mmenke
https://codereview.chromium.org/2030353002/diff/370001/net/base/elements_upload_data_stream.cc File net/base/elements_upload_data_stream.cc (right): https://codereview.chromium.org/2030353002/diff/370001/net/base/elements_upload_data_stream.cc#newcode128 net/base/elements_upload_data_stream.cc:128: if (buf->BytesConsumed() > 0 && read_error_ == net::OK) I ...
4 years, 6 months ago (2016-06-22 18:10:20 UTC) #42
maksims (do not use this acc)
On 2016/06/22 18:10:20, mmenke wrote: > https://codereview.chromium.org/2030353002/diff/370001/net/base/elements_upload_data_stream.cc > File net/base/elements_upload_data_stream.cc (right): > > https://codereview.chromium.org/2030353002/diff/370001/net/base/elements_upload_data_stream.cc#newcode128 > ...
4 years, 6 months ago (2016-06-22 18:41:28 UTC) #43
maksims (do not use this acc)
On 2016/06/22 18:41:28, maksims wrote: > On 2016/06/22 18:10:20, mmenke wrote: > > > https://codereview.chromium.org/2030353002/diff/370001/net/base/elements_upload_data_stream.cc ...
4 years, 6 months ago (2016-06-22 18:42:05 UTC) #44
mmenke
On 2016/06/22 18:42:05, maksims wrote: > On 2016/06/22 18:41:28, maksims wrote: > > On 2016/06/22 ...
4 years, 6 months ago (2016-06-22 18:46:32 UTC) #45
maksims (do not use this acc)
On 2016/06/22 18:46:32, mmenke wrote: > On 2016/06/22 18:42:05, maksims wrote: > > On 2016/06/22 ...
4 years, 6 months ago (2016-06-22 18:56:55 UTC) #46
maksims (do not use this acc)
On 2016/06/22 18:56:55, maksims wrote: > On 2016/06/22 18:46:32, mmenke wrote: > > On 2016/06/22 ...
4 years, 6 months ago (2016-06-22 18:57:59 UTC) #47
mmenke
On 2016/06/22 18:56:55, maksims wrote: > On 2016/06/22 18:46:32, mmenke wrote: > > On 2016/06/22 ...
4 years, 6 months ago (2016-06-22 18:59:11 UTC) #48
maksims (do not use this acc)
Yes, you are right. New patch without the check is uploaded.
4 years, 6 months ago (2016-06-22 19:12:20 UTC) #49
mmenke
On 2016/06/22 19:12:20, maksims wrote: > Yes, you are right. New patch without the check ...
4 years, 6 months ago (2016-06-22 19:26:56 UTC) #50
maksims (do not use this acc)
On 2016/06/22 19:26:56, mmenke wrote: > On 2016/06/22 19:12:20, maksims wrote: > > Yes, you ...
4 years, 6 months ago (2016-06-22 20:00:40 UTC) #51
maksims (do not use this acc)
On 2016/06/22 20:00:40, maksims wrote: > On 2016/06/22 19:26:56, mmenke wrote: > > On 2016/06/22 ...
4 years, 6 months ago (2016-06-22 20:02:40 UTC) #52
mmenke
On 2016/06/22 20:02:40, maksims wrote: > On 2016/06/22 20:00:40, maksims wrote: > > On 2016/06/22 ...
4 years, 6 months ago (2016-06-22 20:24:07 UTC) #53
mmenke
On 2016/06/22 20:24:07, mmenke wrote: > On 2016/06/22 20:02:40, maksims wrote: > > On 2016/06/22 ...
4 years, 6 months ago (2016-06-23 15:07:18 UTC) #54
maksims (do not use this acc)
On 2016/06/23 15:07:18, mmenke wrote: > On 2016/06/22 20:24:07, mmenke wrote: > > On 2016/06/22 ...
4 years, 6 months ago (2016-06-23 16:02:49 UTC) #56
mmenke
On 2016/06/23 16:02:49, maksims wrote: > On 2016/06/23 15:07:18, mmenke wrote: > > On 2016/06/22 ...
4 years, 6 months ago (2016-06-23 16:05:37 UTC) #57
maksims (do not use this acc)
On 2016/06/23 16:05:37, mmenke wrote: > On 2016/06/23 16:02:49, maksims wrote: > > On 2016/06/23 ...
4 years, 6 months ago (2016-06-23 16:08:16 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030353002/410001
4 years, 6 months ago (2016-06-23 16:08:48 UTC) #62
mmenke
On 2016/06/23 16:05:37, mmenke wrote: > On 2016/06/23 16:02:49, maksims wrote: > > On 2016/06/23 ...
4 years, 6 months ago (2016-06-23 16:10:31 UTC) #63
commit-bot: I haz the power
Committed patchset #6 (id:410001)
4 years, 6 months ago (2016-06-23 17:12:08 UTC) #65
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 17:17:04 UTC) #67
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e869bf5e1c460baf8a96f5b00407a76dad7e7ef8
Cr-Commit-Position: refs/heads/master@{#401636}

Powered by Google App Engine
This is Rietveld 408576698