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

Issue 2258893004: Changes connection migration code to migrate on NetworkMadeDefault (Closed)

Created:
4 years, 4 months ago by Jana
Modified:
4 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, Jo Kulik, Fan Yang
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Changes connection migration code to migrate on NetworkMadeDefault instead of on SoonToDisconnect. The NetworkMadeDefault notification is supposed to always be issued before SoonToDisconnect, but there seems to be a bug in Android that causes the order to sometimes be reversed. Current connection migration looks for an alternate network on SoonToDisconnect, and this may not work since there may be no alternate networks around. Since NetworkMadeDefault guarantees that the new default network is around, this CL changes connection migration code to migrate on NetworkMadeDefault instead. BUG= Committed: https://crrev.com/e2661985a8fc716a61934a9c713ff94094155a99 Cr-Commit-Position: refs/heads/master@{#413327}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments. #

Total comments: 4

Patch Set 3 : Comments addressed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -167 lines) Patch
M net/quic/chromium/quic_stream_factory.h View 1 1 chunk +14 lines, -9 lines 0 comments Download
M net/quic/chromium/quic_stream_factory.cc View 1 2 3 chunks +35 lines, -39 lines 0 comments Download
M net/quic/chromium/quic_stream_factory_test.cc View 13 chunks +14 lines, -119 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
Jana
4 years, 4 months ago (2016-08-19 02:28:43 UTC) #2
pauljensen
The idea sgtm; I have little knowledge of the code.
4 years, 4 months ago (2016-08-19 11:10:47 UTC) #3
Ryan Hamilton
Looks good. A couple questions. https://codereview.chromium.org/2258893004/diff/1/net/quic/chromium/quic_stream_factory.cc File net/quic/chromium/quic_stream_factory.cc (left): https://codereview.chromium.org/2258893004/diff/1/net/quic/chromium/quic_stream_factory.cc#oldcode1526 net/quic/chromium/quic_stream_factory.cc:1526: if (force_close) { This ...
4 years, 4 months ago (2016-08-19 20:05:02 UTC) #4
Jana
Thanks, Ryan. PTAL https://codereview.chromium.org/2258893004/diff/1/net/quic/chromium/quic_stream_factory.cc File net/quic/chromium/quic_stream_factory.cc (left): https://codereview.chromium.org/2258893004/diff/1/net/quic/chromium/quic_stream_factory.cc#oldcode1526 net/quic/chromium/quic_stream_factory.cc:1526: if (force_close) { On 2016/08/19 20:05:02, ...
4 years, 4 months ago (2016-08-19 21:44:08 UTC) #5
Ryan Hamilton
Looks good mod one suggestion. thanks! https://codereview.chromium.org/2258893004/diff/20001/net/quic/chromium/quic_stream_factory.cc File net/quic/chromium/quic_stream_factory.cc (right): https://codereview.chromium.org/2258893004/diff/20001/net/quic/chromium/quic_stream_factory.cc#newcode1498 net/quic/chromium/quic_stream_factory.cc:1498: while (it != ...
4 years, 4 months ago (2016-08-19 22:03:53 UTC) #6
Jana
Thanks, Ryan. PTAL https://codereview.chromium.org/2258893004/diff/20001/net/quic/chromium/quic_stream_factory.cc File net/quic/chromium/quic_stream_factory.cc (right): https://codereview.chromium.org/2258893004/diff/20001/net/quic/chromium/quic_stream_factory.cc#newcode1498 net/quic/chromium/quic_stream_factory.cc:1498: while (it != all_sessions_.end()) { On ...
4 years, 4 months ago (2016-08-20 01:48:32 UTC) #7
Ryan Hamilton
lgtm
4 years, 4 months ago (2016-08-20 04:21:14 UTC) #8
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/2258893004/40001
4 years, 4 months ago (2016-08-20 05:42:05 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/126476)
4 years, 4 months ago (2016-08-20 07:03:20 UTC) #12
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/2258893004/40001
4 years, 4 months ago (2016-08-20 07:45:52 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-20 08:25:16 UTC) #15
commit-bot: I haz the power
4 years, 4 months ago (2016-08-20 08:26:47 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e2661985a8fc716a61934a9c713ff94094155a99
Cr-Commit-Position: refs/heads/master@{#413327}

Powered by Google App Engine
This is Rietveld 408576698