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

Issue 2025573002: Use continual gathering to restore backup connections (Closed)

Created:
4 years, 6 months ago by honghaiz3
Modified:
4 years, 5 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

If continual gathering is enabled, we will periodically check if any network does not have any connection on it and if yes, attempt to re-gather on those networks. BUG= R=pthatcher@webrtc.org Committed: https://crrev.com/5622c5eae547dc079763865a31d7da951bb9cd76 Cr-Commit-Position: refs/heads/master@{#13367}

Patch Set 1 : #

Patch Set 2 : Add tests #

Total comments: 18

Patch Set 3 : Address Taylor comments #

Total comments: 34

Patch Set 4 : Review #

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 8

Patch Set 7 : . #

Patch Set 8 : Merge branch 'master' into enhanced_cg #

Total comments: 14

Patch Set 9 : Address comments and revised tests #

Total comments: 19

Patch Set 10 : Added SessionState so that it won't regather if it is currently gathering. #

Patch Set 11 : Merge #

Patch Set 12 : Merge branch 'master' into enhanced_cg #

Patch Set 13 : Fix a win-compiler warning #

Patch Set 14 : Merge again #

Total comments: 4

Patch Set 15 : Change INPROGRESS to GATHERING, mark port has no pairable candidates if its candidates are removed. #

Patch Set 16 : Merge again. #

Patch Set 17 : Remove candidates on pruned ports when network failed #

Patch Set 18 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+592 lines, -214 lines) Patch
M webrtc/api/webrtcsession.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +15 lines, -2 lines 0 comments Download
M webrtc/api/webrtcsession_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M webrtc/base/network.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -8 lines 0 comments Download
M webrtc/base/network_unittest.cc View 1 2 3 4 5 6 6 chunks +0 lines, -17 lines 0 comments Download
M webrtc/p2p/base/fakeportallocator.h View 1 2 3 4 5 6 7 8 9 4 chunks +1 line, -6 lines 0 comments Download
M webrtc/p2p/base/faketransportcontroller.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -8 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +13 lines, -3 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +82 lines, -30 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 19 chunks +241 lines, -57 lines 0 comments Download
M webrtc/p2p/base/port.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/p2p/base/port.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -6 lines 0 comments Download
M webrtc/p2p/base/portallocator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +39 lines, -6 lines 0 comments Download
M webrtc/p2p/base/portinterface.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -3 lines 0 comments Download
M webrtc/p2p/base/transport.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +29 lines, -6 lines 0 comments Download
M webrtc/p2p/base/transportcontroller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -4 lines 0 comments Download
M webrtc/p2p/client/basicportallocator.h View 1 2 3 4 5 6 7 8 9 10 8 chunks +17 lines, -9 lines 0 comments Download
M webrtc/p2p/client/basicportallocator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 10 chunks +137 lines, -46 lines 0 comments Download

Messages

Total messages: 69 (36 generated)
honghaiz3
I tested this by manually removing all or backup connections. I am working on the ...
4 years, 6 months ago (2016-06-02 21:35:55 UTC) #10
honghaiz3
Added tests. PTAL.
4 years, 6 months ago (2016-06-03 21:35:47 UTC) #12
honghaiz3
Just a friendly reminder for the review.
4 years, 6 months ago (2016-06-06 17:13:44 UTC) #13
Taylor Brandstetter
https://codereview.webrtc.org/2025573002/diff/150001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2025573002/diff/150001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1261 webrtc/p2p/base/p2ptransportchannel.cc:1261: // external world. When you say "external world", do ...
4 years, 6 months ago (2016-06-06 18:18:37 UTC) #14
Taylor Brandstetter
By the way, haven't reviewed unit tests yet.
4 years, 6 months ago (2016-06-06 18:18:50 UTC) #15
honghaiz3
Thanks! PTAL. https://codereview.webrtc.org/2025573002/diff/150001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2025573002/diff/150001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1261 webrtc/p2p/base/p2ptransportchannel.cc:1261: // external world. On 2016/06/06 18:18:37, Taylor ...
4 years, 6 months ago (2016-06-07 16:42:07 UTC) #16
Taylor Brandstetter
https://codereview.webrtc.org/2025573002/diff/150001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2025573002/diff/150001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1261 webrtc/p2p/base/p2ptransportchannel.cc:1261: // external world. On 2016/06/07 16:42:06, honghaiz3 wrote: > ...
4 years, 6 months ago (2016-06-07 17:13:26 UTC) #17
pthatcher1
I haven't checked the unit tests yet. The "***"s are notes to myself to come ...
4 years, 6 months ago (2016-06-07 18:54:34 UTC) #18
Taylor Brandstetter
https://codereview.webrtc.org/2025573002/diff/230001/webrtc/p2p/base/p2ptransportchannel_unittest.cc File webrtc/p2p/base/p2ptransportchannel_unittest.cc (right): https://codereview.webrtc.org/2025573002/diff/230001/webrtc/p2p/base/p2ptransportchannel_unittest.cc#newcode1765 webrtc/p2p/base/p2ptransportchannel_unittest.cc:1765: DestroyChannels(); Can you explain why this is needed? Shouldn't ...
4 years, 6 months ago (2016-06-21 23:36:13 UTC) #19
Taylor Brandstetter
I had another thought about this. Assuming "PortAllocator" becomes the "IceGatherer", would it make more ...
4 years, 6 months ago (2016-06-23 17:00:17 UTC) #20
honghaiz3
I finally re-wrote this CL and put most of the logic in the BasicPortAllocatorSession although ...
4 years, 5 months ago (2016-06-29 02:48:23 UTC) #27
honghaiz3
You may want to start look at this CL. Please focus on the non-test code ...
4 years, 5 months ago (2016-06-29 17:54:42 UTC) #29
pthatcher1
This looks much better. I haven't check the unit tests yet. It's all nits, except ...
4 years, 5 months ago (2016-06-29 18:53:27 UTC) #31
honghaiz3
Revised tests and addressed comments. We now handle the network inactive in allocator session and ...
4 years, 5 months ago (2016-06-29 20:19:22 UTC) #32
pthatcher1
lgtm OK, that makes sense. https://codereview.webrtc.org/2025573002/diff/410001/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.webrtc.org/2025573002/diff/410001/webrtc/p2p/client/basicportallocator.cc#newcode224 webrtc/p2p/client/basicportallocator.cc:224: std::set<std::string> networks_having_connection; networks_with_connections would ...
4 years, 5 months ago (2016-06-29 21:34:13 UTC) #33
Taylor Brandstetter
Basically just nits about the wording of comments. Great work on this. https://codereview.webrtc.org/2025573002/diff/410001/webrtc/api/webrtcsession_unittest.cc File webrtc/api/webrtcsession_unittest.cc ...
4 years, 5 months ago (2016-06-29 22:12:28 UTC) #34
honghaiz3
I add a SessionState so that it won't regather when it is currently gathering. https://codereview.webrtc.org/2025573002/diff/410001/webrtc/api/webrtcsession_unittest.cc ...
4 years, 5 months ago (2016-06-30 01:04:22 UTC) #36
honghaiz3
https://codereview.webrtc.org/2025573002/diff/410001/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.webrtc.org/2025573002/diff/410001/webrtc/p2p/client/basicportallocator.cc#newcode236 webrtc/p2p/client/basicportallocator.cc:236: // considered failed. On 2016/06/30 01:04:22, honghaiz3 wrote: > ...
4 years, 5 months ago (2016-06-30 04:49:45 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2025573002/490001
4 years, 5 months ago (2016-06-30 21:22:05 UTC) #40
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_gn_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_gn_dbg/builds/12267) ios64_gn_dbg on ...
4 years, 5 months ago (2016-06-30 21:23:16 UTC) #42
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2025573002/510001
4 years, 5 months ago (2016-07-01 04:09:36 UTC) #44
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_compile_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_compile_dbg/builds/6568) win_x64_gn_rel on ...
4 years, 5 months ago (2016-07-01 04:12:27 UTC) #46
honghaiz3
On 2016/07/01 04:12:27, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 5 months ago (2016-07-01 15:03:04 UTC) #47
pthatcher1
https://codereview.webrtc.org/2025573002/diff/550001/webrtc/p2p/base/portallocator.h File webrtc/p2p/base/portallocator.h (right): https://codereview.webrtc.org/2025573002/diff/550001/webrtc/p2p/base/portallocator.h#newcode92 webrtc/p2p/base/portallocator.h:92: INPROGRESS, // Actively allocating ports and candidates. Can we ...
4 years, 5 months ago (2016-07-01 18:09:59 UTC) #48
honghaiz3
PTAL. https://codereview.webrtc.org/2025573002/diff/550001/webrtc/p2p/base/portallocator.h File webrtc/p2p/base/portallocator.h (right): https://codereview.webrtc.org/2025573002/diff/550001/webrtc/p2p/base/portallocator.h#newcode92 webrtc/p2p/base/portallocator.h:92: INPROGRESS, // Actively allocating ports and candidates. On ...
4 years, 5 months ago (2016-07-01 18:41:09 UTC) #50
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2025573002/590001
4 years, 5 months ago (2016-07-01 18:41:35 UTC) #52
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios64_gn_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios64_gn_dbg/builds/951) ios_rel on ...
4 years, 5 months ago (2016-07-01 18:42:26 UTC) #54
pthatcher1
lgtm
4 years, 5 months ago (2016-07-01 20:34:35 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2025573002/630001
4 years, 5 months ago (2016-07-01 20:36:33 UTC) #58
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_x64_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_compile_x64_dbg/builds/5188) win_clang_rel on master.tryserver.webrtc (JOB_FAILED, ...
4 years, 5 months ago (2016-07-01 20:38:04 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2025573002/650001
4 years, 5 months ago (2016-07-01 20:47:34 UTC) #63
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_clang_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_clang_rel/builds/4493)
4 years, 5 months ago (2016-07-01 20:49:05 UTC) #65
honghaiz3
4 years, 5 months ago (2016-07-01 20:59:47 UTC) #67
Message was sent while issue was closed.
Committed patchset #18 (id:650001) manually as
5622c5eae547dc079763865a31d7da951bb9cd76 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698