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

Issue 2035643002: Introduce error handling in QuicHttpStream 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:
Ryan Hamilton, 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 QuicHttpStream on UploadDataStream::Read() failure. QuicHttpStream 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 QuicHttpStream 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/ QuicHttpStream https://codereview.chromium.org/2035643002/ <------ current And the main change in UploadDataStream: https://codereview.chromium.org/2030353002/ BUG=517615 Committed: https://crrev.com/84e20c9dfaf678e443f8ca7f5dea9a416fb55837 Cr-Commit-Position: refs/heads/master@{#401561}

Patch Set 1 #

Patch Set 2 : removed test upload_data_stream file from the patch used to run try bots in patch 1 #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : rebasing #

Patch Set 5 : remove 1 sec delay #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -5 lines) Patch
M net/quic/quic_http_stream.cc View 1 2 3 4 1 chunk +9 lines, -5 lines 0 comments Download
M net/quic/quic_http_stream_test.cc View 1 2 3 4 3 chunks +111 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
maksims (do not use this acc)
Might not be ideal, but would like to give it a try. please take a ...
4 years, 6 months ago (2016-06-02 11:36:12 UTC) #3
mmenke
[+rch] https://codereview.chromium.org/2035643002/diff/20001/net/quic/quic_http_stream.cc File net/quic/quic_http_stream.cc (right): https://codereview.chromium.org/2035643002/diff/20001/net/quic/quic_http_stream.cc#newcode673 net/quic/quic_http_stream.cc:673: DoCallback(rv); I don't think you need to invoke ...
4 years, 6 months ago (2016-06-02 15:17:58 UTC) #7
Ryan Hamilton
+1 to both of mmenke's comments
4 years, 6 months ago (2016-06-02 16:55:19 UTC) #8
maksims (do not use this acc)
ptal https://codereview.chromium.org/2035643002/diff/20001/net/quic/quic_http_stream.cc File net/quic/quic_http_stream.cc (right): https://codereview.chromium.org/2035643002/diff/20001/net/quic/quic_http_stream.cc#newcode673 net/quic/quic_http_stream.cc:673: DoCallback(rv); On 2016/06/02 15:17:58, mmenke wrote: > I ...
4 years, 6 months ago (2016-06-03 09:40:31 UTC) #9
mmenke
LGTM! But please wait for Ryan's signoff before landing.
4 years, 6 months ago (2016-06-03 16:00:30 UTC) #11
Ryan Hamilton
lgtm
4 years, 6 months ago (2016-06-03 16:30:33 UTC) #12
maksims (do not use this acc)
removed 1 sec delay
4 years, 6 months ago (2016-06-21 12:16:46 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2035643002/80001
4 years, 6 months ago (2016-06-23 07:50:25 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-23 08:49:51 UTC) #18
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 08:51:37 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/84e20c9dfaf678e443f8ca7f5dea9a416fb55837
Cr-Commit-Position: refs/heads/master@{#401561}

Powered by Google App Engine
This is Rietveld 408576698