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

Issue 1775283002: [Domain Reliabiliy: net stack] Plumb received go away from server due to connection migration. (Closed)

Created:
4 years, 9 months ago by Zhongyi Shi
Modified:
4 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, sburnett, pavlos
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Plumb received go away from server due to connection migration. BUG=593163 Committed: https://crrev.com/6b5a389af3231391673ca3654034571a17a53034 Cr-Commit-Position: refs/heads/master@{#380849}

Patch Set 1 #

Total comments: 2

Patch Set 2 : bind go_away_received per request #

Patch Set 3 : add test in quic_stream_factory_test: go away with migration with port only #

Total comments: 8

Patch Set 4 : add unittest, address rch's comments #

Patch Set 5 : rebase #

Total comments: 2

Patch Set 6 : cache the flag in quic_http_stream if session closed #

Total comments: 2

Patch Set 7 : remove conditional assignment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -7 lines) Patch
M net/base/net_error_details.h View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M net/quic/quic_chromium_client_session.h View 1 2 3 4 5 4 chunks +7 lines, -1 line 0 comments Download
M net/quic/quic_chromium_client_session.cc View 1 2 3 4 5 5 chunks +9 lines, -2 lines 0 comments Download
M net/quic/quic_http_stream.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M net/quic/quic_http_stream.cc View 1 2 3 4 5 6 3 chunks +8 lines, -1 line 0 comments Download
M net/quic/quic_network_transaction_unittest.cc View 1 2 3 3 chunks +80 lines, -0 lines 0 comments Download
M net/quic/quic_stream_factory_test.cc View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
M net/quic/test_tools/quic_test_packet_maker.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M net/quic/test_tools/quic_test_packet_maker.cc View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (9 generated)
Zhongyi Shi
This patch tried to identify a GoAway frame is received from server for connection migration ...
4 years, 9 months ago (2016-03-09 17:35:26 UTC) #3
Zhongyi Shi
4 years, 9 months ago (2016-03-09 17:36:08 UTC) #4
Ryan Hamilton
https://codereview.chromium.org/1775283002/diff/1/net/quic/quic_chromium_client_session.cc File net/quic/quic_chromium_client_session.cc (right): https://codereview.chromium.org/1775283002/diff/1/net/quic/quic_chromium_client_session.cc#newcode1041 net/quic/quic_chromium_client_session.cc:1041: stream_factory_->OnSessionGoingAwayForConnectionMigration(); Instead of doing this, can we have the ...
4 years, 9 months ago (2016-03-09 19:53:03 UTC) #5
Zhongyi Shi
Change the plumbing path to bind the flag per request. PTAL.
4 years, 9 months ago (2016-03-10 22:26:08 UTC) #7
Ryan Hamilton
Looks much better! https://codereview.chromium.org/1775283002/diff/40001/net/base/net_error_details.h File net/base/net_error_details.h (right): https://codereview.chromium.org/1775283002/diff/40001/net/base/net_error_details.h#newcode38 net/base/net_error_details.h:38: bool received_goaway_because_of_migrating_port; nit: since this is ...
4 years, 9 months ago (2016-03-10 22:46:44 UTC) #9
Zhongyi Shi
Thanks Ryan! Spent sometime to figure out the difference between receiving a goaway and connectionclose. ...
4 years, 9 months ago (2016-03-11 03:56:32 UTC) #11
Ryan Hamilton
On suggestion. Looks good otherwise. https://codereview.chromium.org/1775283002/diff/100001/net/quic/quic_http_stream.cc File net/quic/quic_http_stream.cc (right): https://codereview.chromium.org/1775283002/diff/100001/net/quic/quic_http_stream.cc#newcode440 net/quic/quic_http_stream.cc:440: if (session_) In the ...
4 years, 9 months ago (2016-03-11 22:48:58 UTC) #12
Zhongyi Shi
Thanks Ryan for the suggestion! This patch now caches the flag in quic_http_stream when the ...
4 years, 9 months ago (2016-03-11 23:15:30 UTC) #13
Ryan Hamilton
lgtm Thanks! https://codereview.chromium.org/1775283002/diff/120001/net/quic/quic_http_stream.cc File net/quic/quic_http_stream.cc (right): https://codereview.chromium.org/1775283002/diff/120001/net/quic/quic_http_stream.cc#newcode527 net/quic/quic_http_stream.cc:527: port_migration_detected_ = port_migration_detected; nit: I think there's ...
4 years, 9 months ago (2016-03-11 23:46:16 UTC) #14
Zhongyi Shi
Thanks for reviewing :D Landing this patch, once the other patch in domain_reliability is shipped ...
4 years, 9 months ago (2016-03-11 23:57:23 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775283002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775283002/140001
4 years, 9 months ago (2016-03-11 23:58:32 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 9 months ago (2016-03-12 04:46:31 UTC) #20
commit-bot: I haz the power
4 years, 9 months ago (2016-03-12 04:48:01 UTC) #22
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/6b5a389af3231391673ca3654034571a17a53034
Cr-Commit-Position: refs/heads/master@{#380849}

Powered by Google App Engine
This is Rietveld 408576698