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

Issue 2462463002: Make net::BidirectionalStream handle RST_STREAM_NO_ERROR (Closed)

Created:
4 years, 1 month ago by xunjieli
Modified:
4 years, 1 month ago
Reviewers:
kapishnikov
CC:
chromium-reviews, cbentzel+watch_chromium.org, mef
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make net::BidirectionalStream handle RST_STREAM_NO_ERROR. This CL makes net::BidirectionalStream handle RST_STREAM_NO_ERROR, so that future SendData() call will not produce OnFailed() callback. This CL essentially make net::BidirectionalStream blackhole SendData() after receiving a RST_STREAM with no error. BUG=650438 Committed: https://crrev.com/4f8b6bb6105a7265a4a93e2ed4fa05c72b84761a Cr-Commit-Position: refs/heads/master@{#428858}

Patch Set 1 : self review #

Total comments: 1

Patch Set 2 : Address comments #

Total comments: 6

Patch Set 3 : Address Andrei's comments #

Total comments: 2

Patch Set 4 : Address comments #

Patch Set 5 : Fix compile #

Patch Set 6 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -7 lines) Patch
M net/spdy/bidirectional_stream_spdy_impl.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M net/spdy/bidirectional_stream_spdy_impl.cc View 1 2 3 4 5 10 chunks +50 lines, -6 lines 0 comments Download
M net/spdy/bidirectional_stream_spdy_impl_unittest.cc View 1 2 3 4 2 chunks +88 lines, -1 line 0 comments Download

Messages

Total messages: 43 (25 generated)
xunjieli
Andrei, thanks for the suggestions. What do you think about this patch?
4 years, 1 month ago (2016-10-27 21:30:06 UTC) #6
kapishnikov
https://codereview.chromium.org/2462463002/diff/40001/net/spdy/bidirectional_stream_spdy_impl.cc File net/spdy/bidirectional_stream_spdy_impl.cc (right): https://codereview.chromium.org/2462463002/diff/40001/net/spdy/bidirectional_stream_spdy_impl.cc#newcode375 net/spdy/bidirectional_stream_spdy_impl.cc:375: if (stream_closed_ && closed_stream_status_ == OK) { If the ...
4 years, 1 month ago (2016-10-28 16:11:00 UTC) #11
xunjieli
Thanks for the review! I have uploaded a new CL. Please feel free to delay ...
4 years, 1 month ago (2016-10-28 21:54:13 UTC) #15
kapishnikov
https://codereview.chromium.org/2462463002/diff/120001/net/spdy/bidirectional_stream_spdy_impl.cc File net/spdy/bidirectional_stream_spdy_impl.cc (right): https://codereview.chromium.org/2462463002/diff/120001/net/spdy/bidirectional_stream_spdy_impl.cc#newcode114 net/spdy/bidirectional_stream_spdy_impl.cc:114: Should we add DCHECK(!written_end_of_stream_) here or will it break ...
4 years, 1 month ago (2016-10-31 17:03:07 UTC) #16
xunjieli
Thanks for the review! I think after making the suggested change, the code looks less ...
4 years, 1 month ago (2016-10-31 17:18:03 UTC) #17
kapishnikov
https://codereview.chromium.org/2462463002/diff/140001/net/spdy/bidirectional_stream_spdy_impl_unittest.cc File net/spdy/bidirectional_stream_spdy_impl_unittest.cc (right): https://codereview.chromium.org/2462463002/diff/140001/net/spdy/bidirectional_stream_spdy_impl_unittest.cc#newcode437 net/spdy/bidirectional_stream_spdy_impl_unittest.cc:437: TEST_F(BidirectionalStreamSpdyImplTest, RstWithNoErrorBeforeSendIsComplete) { We need a similar test for ...
4 years, 1 month ago (2016-10-31 17:21:47 UTC) #18
xunjieli
Thanks for the review! PTAL https://codereview.chromium.org/2462463002/diff/140001/net/spdy/bidirectional_stream_spdy_impl_unittest.cc File net/spdy/bidirectional_stream_spdy_impl_unittest.cc (right): https://codereview.chromium.org/2462463002/diff/140001/net/spdy/bidirectional_stream_spdy_impl_unittest.cc#newcode437 net/spdy/bidirectional_stream_spdy_impl_unittest.cc:437: TEST_F(BidirectionalStreamSpdyImplTest, RstWithNoErrorBeforeSendIsComplete) { On ...
4 years, 1 month ago (2016-10-31 18:42:19 UTC) #21
kapishnikov
lgtm
4 years, 1 month ago (2016-10-31 18:56:22 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2462463002/200001
4 years, 1 month ago (2016-10-31 18:57:05 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/322360)
4 years, 1 month ago (2016-10-31 19:24:39 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2462463002/220001
4 years, 1 month ago (2016-10-31 19:33:02 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/251847)
4 years, 1 month ago (2016-10-31 20:03:05 UTC) #31
xunjieli
Thanks, Andrei! The problem was that |write_pending_| isn't set back to false when OnDataSent() is ...
4 years, 1 month ago (2016-10-31 21:58:31 UTC) #32
kapishnikov
Looks good. LGTM
4 years, 1 month ago (2016-10-31 22:05:02 UTC) #35
xunjieli
On 2016/10/31 22:05:02, kapishnikov wrote: > Looks good. LGTM Thanks!
4 years, 1 month ago (2016-10-31 22:05:34 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2462463002/240001
4 years, 1 month ago (2016-10-31 22:06:30 UTC) #39
commit-bot: I haz the power
Committed patchset #6 (id:240001)
4 years, 1 month ago (2016-10-31 23:16:26 UTC) #41
commit-bot: I haz the power
4 years, 1 month ago (2016-10-31 23:21:05 UTC) #43
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/4f8b6bb6105a7265a4a93e2ed4fa05c72b84761a
Cr-Commit-Position: refs/heads/master@{#428858}

Powered by Google App Engine
This is Rietveld 408576698