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

Issue 2093623004: Add config to prune TURN ports (Closed)

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

Description

Add config to prune low-priority TURN ports for creating connections When the flag prune_turn_ports is set, When a high-priority turn port becomes available, it will prune low-priority ones. The pruned port will not be used for creating connections locally and its candidates will not be sent over to the remove side (unless they have been sent before being pruned). This effectively reduces the number of TURN candidates and connections created by TURN ports. BUG= R=deadbeef@webrtc.org, pthatcher@webrtc.org Committed: https://crrev.com/b9e7b4ad66a0466b83545273ad99f030c24bea7f Committed: https://crrev.com/17aac053f585e892114974d2eb248e05ad37f973 Cr-Original-Commit-Position: refs/heads/master@{#13335} Cr-Commit-Position: refs/heads/master@{#13354}

Patch Set 1 : Merge with head #

Patch Set 2 : . #

Patch Set 3 : Add all tests and fix a bug to set port type #

Total comments: 30

Patch Set 4 : Address comments #

Patch Set 5 : Minor fixes #

Patch Set 6 : Merge branch 'master' into turn_port_exposer #

Total comments: 30

Patch Set 7 : Address comments #

Patch Set 8 : Minor fix #

Total comments: 10

Patch Set 9 : . #

Total comments: 4

Patch Set 10 : . #

Total comments: 16

Patch Set 11 : Address Taylor's comments #

Patch Set 12 : Initialized prune_turn_ports_ and removed an unused method #

Patch Set 13 : Merge branch 'master' into turn_port_exposer #

Patch Set 14 : Partially disable the test TestEachInterfaceHasItsOwnTurnPorts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+410 lines, -79 lines) Patch
M webrtc/api/peerconnection.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/api/peerconnectioninterface.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +24 lines, -8 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/p2p/base/port_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/p2p/base/portallocator.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +10 lines, -1 line 0 comments Download
M webrtc/p2p/base/portallocator.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M webrtc/p2p/base/portallocator_unittest.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M webrtc/p2p/base/portinterface.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/p2p/base/relayport.h View 1 chunk +6 lines, -0 lines 0 comments Download
M webrtc/p2p/base/stunport.h View 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/p2p/base/tcpport.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/p2p/base/turnport.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/p2p/client/basicportallocator.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +17 lines, -1 line 0 comments Download
M webrtc/p2p/client/basicportallocator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 13 chunks +137 lines, -48 lines 0 comments Download
M webrtc/p2p/client/basicportallocator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +185 lines, -7 lines 0 comments Download

Messages

Total messages: 70 (37 generated)
honghaiz3
This is the CL to not use low-priority TURN ports. You may want to take ...
4 years, 6 months ago (2016-06-25 00:26:12 UTC) #5
honghaiz3
Added tests. This includes a bug fix CL https://codereview.webrtc.org/2099023002/ in oder for the tests to ...
4 years, 5 months ago (2016-06-27 15:14:04 UTC) #9
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/2093623004/100001
4 years, 5 months ago (2016-06-27 15:14:24 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/14507)
4 years, 5 months ago (2016-06-27 15:24:36 UTC) #13
pthatcher1
https://codereview.webrtc.org/2093623004/diff/100001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2093623004/diff/100001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1653 webrtc/p2p/base/p2ptransportchannel.cc:1653: if (session != allocator_session()) { Can you comment on ...
4 years, 5 months ago (2016-06-27 20:35:55 UTC) #14
honghaiz3
PTAL. Thanks! https://codereview.webrtc.org/2093623004/diff/100001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2093623004/diff/100001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1653 webrtc/p2p/base/p2ptransportchannel.cc:1653: if (session != allocator_session()) { On 2016/06/27 ...
4 years, 5 months ago (2016-06-28 01:49:26 UTC) #17
pthatcher1
https://codereview.webrtc.org/2093623004/diff/200001/webrtc/p2p/base/portallocator.h File webrtc/p2p/base/portallocator.h (right): https://codereview.webrtc.org/2093623004/diff/200001/webrtc/p2p/base/portallocator.h#newcode181 webrtc/p2p/base/portallocator.h:181: // A TURN port is pruned if there is ...
4 years, 5 months ago (2016-06-28 21:01:42 UTC) #19
honghaiz3
PTAL. Thanks! https://codereview.webrtc.org/2093623004/diff/200001/webrtc/p2p/base/portallocator.h File webrtc/p2p/base/portallocator.h (right): https://codereview.webrtc.org/2093623004/diff/200001/webrtc/p2p/base/portallocator.h#newcode181 webrtc/p2p/base/portallocator.h:181: // A TURN port is pruned if ...
4 years, 5 months ago (2016-06-28 23:36:01 UTC) #20
pthatcher1
Just a few more readability suggestions. This is complex enough that I'd really like to ...
4 years, 5 months ago (2016-06-29 00:33:11 UTC) #21
honghaiz3
This won't send unnecessary SignalPortPruned message. PTAL. https://codereview.webrtc.org/2093623004/diff/240001/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.webrtc.org/2093623004/diff/240001/webrtc/p2p/client/basicportallocator.cc#newcode50 webrtc/p2p/client/basicportallocator.cc:50: // Gets ...
4 years, 5 months ago (2016-06-29 01:34:16 UTC) #24
pthatcher1
lgtm I like that a lot. Thank you. Just two minor improvement suggestions. Taylor, are ...
4 years, 5 months ago (2016-06-29 17:36:14 UTC) #25
Taylor Brandstetter
On 2016/06/29 17:36:14, pthatcher1 wrote: > > Taylor, are you going to review this? Yes, ...
4 years, 5 months ago (2016-06-29 18:09:47 UTC) #26
honghaiz3
https://codereview.webrtc.org/2093623004/diff/300001/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.webrtc.org/2093623004/diff/300001/webrtc/p2p/client/basicportallocator.cc#newcode615 webrtc/p2p/client/basicportallocator.cc:615: bool pruned_port = PruneTurnPortsWith(port); On 2016/06/29 17:36:14, pthatcher1 wrote: ...
4 years, 5 months ago (2016-06-29 18:11:45 UTC) #27
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/2093623004/320001
4 years, 5 months ago (2016-06-29 18:19:53 UTC) #29
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/14632)
4 years, 5 months ago (2016-06-29 18:35:21 UTC) #31
Taylor Brandstetter
https://codereview.webrtc.org/2093623004/diff/320001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2093623004/diff/320001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1633 webrtc/p2p/base/p2ptransportchannel.cc:1633: if (RemovePort(port)) { If a port is pruned and ...
4 years, 5 months ago (2016-06-29 20:57:36 UTC) #32
Taylor Brandstetter
https://codereview.webrtc.org/2093623004/diff/320001/webrtc/p2p/base/portallocator.h File webrtc/p2p/base/portallocator.h (right): https://codereview.webrtc.org/2093623004/diff/320001/webrtc/p2p/base/portallocator.h#newcode185 webrtc/p2p/base/portallocator.h:185: sigslot::signal2<PortAllocatorSession*, PortInterface*> SignalPortPruned; On 2016/06/29 20:57:35, Taylor Brandstetter wrote: ...
4 years, 5 months ago (2016-06-29 22:15:24 UTC) #33
honghaiz3
https://codereview.webrtc.org/2093623004/diff/320001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2093623004/diff/320001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1633 webrtc/p2p/base/p2ptransportchannel.cc:1633: if (RemovePort(port)) { On 2016/06/29 20:57:35, Taylor Brandstetter wrote: ...
4 years, 5 months ago (2016-06-29 22:53:30 UTC) #34
Taylor Brandstetter
lgtm https://codereview.webrtc.org/2093623004/diff/320001/webrtc/p2p/client/basicportallocator_unittest.cc File webrtc/p2p/client/basicportallocator_unittest.cc (right): https://codereview.webrtc.org/2093623004/diff/320001/webrtc/p2p/client/basicportallocator_unittest.cc#newcode1237 webrtc/p2p/client/basicportallocator_unittest.cc:1237: // Otherwise there will be only 2 candidates. ...
4 years, 5 months ago (2016-06-29 23:04:57 UTC) #35
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/2093623004/340001
4 years, 5 months ago (2016-06-30 01:08:21 UTC) #38
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/2093623004/360001
4 years, 5 months ago (2016-06-30 01:15:22 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/14649)
4 years, 5 months ago (2016-06-30 01:22:02 UTC) #43
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/17aac053f585e892114974d2eb248e05ad37f973 Cr-Commit-Position: refs/heads/master@{#13335}
4 years, 5 months ago (2016-06-30 04:42:13 UTC) #46
honghaiz3
Committed patchset #12 (id:360001) manually as 17aac053f585e892114974d2eb248e05ad37f973 (presubmit successful).
4 years, 5 months ago (2016-06-30 04:42:13 UTC) #47
danilchap
A revert of this CL (patchset #12 id:360001) has been created in https://codereview.webrtc.org/2111663003/ by danilchap@webrtc.org. ...
4 years, 5 months ago (2016-06-30 08:54:47 UTC) #48
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/2093623004/440001
4 years, 5 months ago (2016-06-30 20:22:59 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/14709)
4 years, 5 months ago (2016-06-30 20:29:50 UTC) #56
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/2093623004/460001
4 years, 5 months ago (2016-07-01 03:11:59 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/2093623004/460001
4 years, 5 months ago (2016-07-01 03:12:59 UTC) #63
honghaiz3
On 2016/07/01 03:12:59, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years, 5 months ago (2016-07-01 03:20:28 UTC) #64
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/14721)
4 years, 5 months ago (2016-07-01 03:26:01 UTC) #66
honghaiz3
Committed patchset #14 (id:460001) manually as b9e7b4ad66a0466b83545273ad99f030c24bea7f (presubmit successful).
4 years, 5 months ago (2016-07-01 03:52:22 UTC) #69
commit-bot: I haz the power
4 years, 5 months ago (2016-07-01 03:52:23 UTC) #70
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/b9e7b4ad66a0466b83545273ad99f030c24bea7f
Cr-Commit-Position: refs/heads/master@{#13354}

Powered by Google App Engine
This is Rietveld 408576698