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

Issue 2022053002: Introduce error handling in SpdyHttpStream 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:
Bence, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, Ryan Hamilton
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 SpdyHttpStream on UploadDataStream::Read() failure. SpdyHttpStream 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 SpdyHttpStream class after UploadDataStream::Read() starts returning errors if read fails. There are several reviews for 3 streams: SpdyHttpStream: https://codereview.chromium.org/2022053002/ <------ current HttpStreamParser https://codereview.chromium.org/2007013003/ QuicHttpStream https://codereview.chromium.org/2035643002/ And the main change in UploadDataStream: https://codereview.chromium.org/2030353002/ BUG=517615 Committed: https://crrev.com/167c3c06f04977980f7ec02bd9d98a45ac2e9e52 Cr-Commit-Position: refs/heads/master@{#401556}

Patch Set 1 #

Patch Set 2 : format #

Patch Set 3 : #

Total comments: 13

Patch Set 4 : #

Total comments: 4

Patch Set 5 : rebasing + comments #

Total comments: 10

Patch Set 6 : comments + moving ReadErrorUploadDataStream back to unnamed naspace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -27 lines) Patch
M net/spdy/spdy_http_stream.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M net/spdy/spdy_http_stream.cc View 1 2 3 4 1 chunk +18 lines, -4 lines 0 comments Download
M net/spdy/spdy_http_stream_unittest.cc View 1 2 3 4 5 24 chunks +162 lines, -23 lines 0 comments Download

Messages

Total messages: 47 (17 generated)
maksims (do not use this acc)
I guess it can be a PTAL now :)
4 years, 6 months ago (2016-05-31 10:31:46 UTC) #7
mmenke
On 2016/05/31 10:31:46, maksims wrote: > I guess it can be a PTAL now :) ...
4 years, 6 months ago (2016-05-31 12:37:27 UTC) #8
mmenke
[+bnc], who knows the HTTP2 (SPDY) code. https://codereview.chromium.org/2022053002/diff/40001/net/spdy/spdy_http_stream.cc File net/spdy/spdy_http_stream.cc (right): https://codereview.chromium.org/2022053002/diff/40001/net/spdy/spdy_http_stream.cc#newcode307 net/spdy/spdy_http_stream.cc:307: // OnRequestBodyReadCompleted() ...
4 years, 6 months ago (2016-06-01 17:24:07 UTC) #10
maksims (do not use this acc)
On 2016/06/01 17:24:07, mmenke wrote: > [+bnc], who knows the HTTP2 (SPDY) code. > > ...
4 years, 6 months ago (2016-06-02 12:04:52 UTC) #14
maksims (do not use this acc)
And as I see there is no any expectations that callback will be called after ...
4 years, 6 months ago (2016-06-02 12:34:06 UTC) #15
maksims (do not use this acc)
On 2016/06/02 12:34:06, maksims wrote: > And as I see there is no any expectations ...
4 years, 6 months ago (2016-06-02 12:34:21 UTC) #16
maksims (do not use this acc)
https://codereview.chromium.org/2022053002/diff/40001/net/spdy/spdy_http_stream.cc File net/spdy/spdy_http_stream.cc (right): https://codereview.chromium.org/2022053002/diff/40001/net/spdy/spdy_http_stream.cc#newcode474 net/spdy/spdy_http_stream.cc:474: weak_factory_.GetWeakPtr())); On 2016/06/01 17:24:07, mmenke wrote: > Should do ...
4 years, 6 months ago (2016-06-02 12:43:12 UTC) #17
mmenke
On 2016/06/02 12:04:52, maksims wrote: > On 2016/06/01 17:24:07, mmenke wrote: > > [+bnc], who ...
4 years, 6 months ago (2016-06-02 14:59:33 UTC) #18
mmenke
On 2016/06/02 12:34:21, maksims wrote: > On 2016/06/02 12:34:06, maksims wrote: > > And as ...
4 years, 6 months ago (2016-06-02 15:00:33 UTC) #19
mmenke
https://codereview.chromium.org/2022053002/diff/40001/net/spdy/spdy_http_stream.cc File net/spdy/spdy_http_stream.cc (right): https://codereview.chromium.org/2022053002/diff/40001/net/spdy/spdy_http_stream.cc#newcode474 net/spdy/spdy_http_stream.cc:474: weak_factory_.GetWeakPtr())); On 2016/06/02 12:43:12, maksims wrote: > On 2016/06/01 ...
4 years, 6 months ago (2016-06-02 15:02:10 UTC) #20
mmenke
On 2016/06/02 14:59:33, mmenke wrote: > On 2016/06/02 12:04:52, maksims wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-02 15:13:19 UTC) #21
maksims (do not use this acc)
https://codereview.chromium.org/2022053002/diff/40001/net/spdy/spdy_http_stream.cc File net/spdy/spdy_http_stream.cc (right): https://codereview.chromium.org/2022053002/diff/40001/net/spdy/spdy_http_stream.cc#newcode307 net/spdy/spdy_http_stream.cc:307: // OnRequestBodyReadCompleted() method. On 2016/06/01 17:24:07, mmenke wrote: > ...
4 years, 6 months ago (2016-06-03 11:39:08 UTC) #23
maksims (do not use this acc)
On 2016/06/02 15:13:19, mmenke wrote: > On 2016/06/02 14:59:33, mmenke wrote: > > On 2016/06/02 ...
4 years, 6 months ago (2016-06-03 11:43:52 UTC) #24
mmenke
On 2016/06/03 11:43:52, maksims wrote: > On 2016/06/02 15:13:19, mmenke wrote: > > On 2016/06/02 ...
4 years, 6 months ago (2016-06-03 16:07:56 UTC) #27
maksims (do not use this acc)
On 2016/06/03 16:07:56, mmenke wrote: > On 2016/06/03 11:43:52, maksims wrote: > > On 2016/06/02 ...
4 years, 6 months ago (2016-06-06 09:10:14 UTC) #28
mmenke
On 2016/06/06 09:10:14, maksims wrote: > On 2016/06/03 16:07:56, mmenke wrote: > > On 2016/06/03 ...
4 years, 6 months ago (2016-06-06 14:54:45 UTC) #29
Bence
I apologize for being so extremely slow to respond. SpdyHttpStreamTest.DataReadErrorAsynchronous and SpdyHttpStreamTest.DataReadErrorSynchronous both crash for ...
4 years, 6 months ago (2016-06-10 17:39:18 UTC) #30
maksims (do not use this acc)
On 2016/06/10 17:39:18, Bence OOO until June 20 wrote: > I apologize for being so ...
4 years, 6 months ago (2016-06-10 17:46:32 UTC) #31
Bence
Hi, On 2016/06/10 17:46:32, maksims wrote: > > Hi, > > They crash because there ...
4 years, 6 months ago (2016-06-10 17:54:51 UTC) #32
maksims (do not use this acc)
On 2016/06/10 17:54:51, Bence OOO until June 20 wrote: > Hi, > > On 2016/06/10 ...
4 years, 6 months ago (2016-06-10 17:59:26 UTC) #33
maksims (do not use this acc)
and question is why spdy is implemented in other way different from HttpStreamParser and QuicHttpStream. ...
4 years, 6 months ago (2016-06-10 18:02:18 UTC) #34
Bence
rch: Do you happen to know why SpdyHttpStream calls the callback it got in SendRequest ...
4 years, 6 months ago (2016-06-10 20:30:09 UTC) #35
maksims (do not use this acc)
On 2016/06/10 20:30:09, Bence OOO until June 20 wrote: > rch: Do you happen to ...
4 years, 6 months ago (2016-06-13 07:56:06 UTC) #36
maksims (do not use this acc)
As long as the issue with callbacks is solved in another CL (https://codereview.chromium.org/2064593002/), please take ...
4 years, 6 months ago (2016-06-20 08:14:24 UTC) #37
Bence
LGTM modulo nits. Things are a lot cleaner now that you split the callback change ...
4 years, 6 months ago (2016-06-20 13:55:30 UTC) #38
mmenke
Just one comment. LGTM, otherwise (Deferring to Bence on tests) https://codereview.chromium.org/2022053002/diff/120001/net/spdy/spdy_http_stream_unittest.cc File net/spdy/spdy_http_stream_unittest.cc (right): https://codereview.chromium.org/2022053002/diff/120001/net/spdy/spdy_http_stream_unittest.cc#newcode77 ...
4 years, 6 months ago (2016-06-20 15:23:43 UTC) #39
maksims (do not use this acc)
https://codereview.chromium.org/2022053002/diff/120001/net/spdy/spdy_http_stream_unittest.cc File net/spdy/spdy_http_stream_unittest.cc (right): https://codereview.chromium.org/2022053002/diff/120001/net/spdy/spdy_http_stream_unittest.cc#newcode77 net/spdy/spdy_http_stream_unittest.cc:77: } // namespace On 2016/06/20 15:23:42, mmenke wrote: > ...
4 years, 6 months ago (2016-06-21 11:18:59 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2022053002/140001
4 years, 6 months ago (2016-06-23 06:31:46 UTC) #43
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years, 6 months ago (2016-06-23 07:32:09 UTC) #45
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 07:34:24 UTC) #47
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/167c3c06f04977980f7ec02bd9d98a45ac2e9e52
Cr-Commit-Position: refs/heads/master@{#401556}

Powered by Google App Engine
This is Rietveld 408576698