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

Issue 1577233006: Implement Turn/Turn first logic for connection selection. (Closed)

Created:
4 years, 11 months ago by guoweis_webrtc
Modified:
4 years, 9 months ago
Reviewers:
pthatcher1
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

Implement Turn/Turn first logic for connection selection. This feature is off by default and can be turned on by setting IceConfig. When turned on, we'll choose a Turn/Turn (UDP takes higher priroity) over the other types of connections while no any connection is writable. However, when there is best connection or there is pending triggered check, those will take higher priority. BUG=webrtc:4591 Committed: https://crrev.com/36f0137fd51e3a557087c3332dd47dcd5956ae4a Cr-Commit-Position: refs/heads/master@{#11850}

Patch Set 1 #

Patch Set 2 : remove unneeded change. #

Patch Set 3 : fix a bug #

Total comments: 14

Patch Set 4 : create Connections class while maintaining the funcitonality. #

Patch Set 5 : Add the turn/turn first functionality #

Patch Set 6 : finish the prioritization of udp turn/turn over tcp turn/turn #

Patch Set 7 : Fix an issue when none of the connections are pinged yet. #

Patch Set 8 : Fix a comment. #

Patch Set 9 : Fix test issues #

Total comments: 46

Patch Set 10 : address comments. #

Patch Set 11 : missed to rename a var #

Total comments: 10

Patch Set 12 : address comments. #

Patch Set 13 : fix a typo #

Patch Set 14 : Fix test cases #

Unified diffs Side-by-side diffs Delta from patch set Stats (+514 lines, -97 lines) Patch
M webrtc/api/peerconnectioninterface.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M webrtc/api/webrtcsession.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +27 lines, -4 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 chunks +180 lines, -53 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 27 chunks +280 lines, -39 lines 0 comments Download
M webrtc/p2p/base/transport.h View 1 2 3 4 5 6 7 8 9 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 55 (29 generated)
guoweis_webrtc
PTAL.
4 years, 11 months ago (2016-01-13 18:54:18 UTC) #4
pthatcher1
These are very well written. Mostly minor things. https://codereview.webrtc.org/1577233006/diff/40001/webrtc/p2p/base/p2ptransportchannel_unittest.cc File webrtc/p2p/base/p2ptransportchannel_unittest.cc (right): https://codereview.webrtc.org/1577233006/diff/40001/webrtc/p2p/base/p2ptransportchannel_unittest.cc#newcode2419 webrtc/p2p/base/p2ptransportchannel_unittest.cc:2419: // ...
4 years, 11 months ago (2016-01-14 22:40:01 UTC) #5
guoweis_webrtc
PTAL. https://codereview.webrtc.org/1577233006/diff/40001/webrtc/p2p/base/p2ptransportchannel_unittest.cc File webrtc/p2p/base/p2ptransportchannel_unittest.cc (right): https://codereview.webrtc.org/1577233006/diff/40001/webrtc/p2p/base/p2ptransportchannel_unittest.cc#newcode2419 webrtc/p2p/base/p2ptransportchannel_unittest.cc:2419: // Test that Relay/Relay candidate pair will be ...
4 years, 11 months ago (2016-01-15 17:47:53 UTC) #8
pthatcher1
lgtm https://codereview.webrtc.org/1577233006/diff/40001/webrtc/p2p/base/p2ptransportchannel_unittest.cc File webrtc/p2p/base/p2ptransportchannel_unittest.cc (right): https://codereview.webrtc.org/1577233006/diff/40001/webrtc/p2p/base/p2ptransportchannel_unittest.cc#newcode2565 webrtc/p2p/base/p2ptransportchannel_unittest.cc:2565: ch.AddRemoteCandidate(CreateRelayCandidate("1.1.1.1", 1, 1)); On 2016/01/15 17:47:52, guoweis_webrtc wrote: ...
4 years, 11 months ago (2016-01-15 20:10:34 UTC) #10
pthatcher1
un-lgtm? Whoops, I hit the wrong button. I meant to wait until the code is ...
4 years, 11 months ago (2016-01-15 20:11:41 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577233006/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577233006/140001
4 years, 11 months ago (2016-01-16 00:01:49 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_rel/builds/12098)
4 years, 11 months ago (2016-01-16 00:09:40 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577233006/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577233006/180001
4 years, 11 months ago (2016-01-22 00:21:40 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_asan on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_asan/builds/12026)
4 years, 11 months ago (2016-01-22 00:30:38 UTC) #19
guoweis_webrtc
On 2016/01/22 00:30:38, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 11 months ago (2016-01-25 18:45:45 UTC) #20
pthatcher1
https://codereview.webrtc.org/1577233006/diff/200001/talk/app/webrtc/peerconnectioninterface.h File talk/app/webrtc/peerconnectioninterface.h (right): https://codereview.webrtc.org/1577233006/diff/200001/talk/app/webrtc/peerconnectioninterface.h#newcode262 talk/app/webrtc/peerconnectioninterface.h:262: bool ping_most_likely_candidate_pair_first; I better name might be prioritize_most_likely_ice_candidate_pairs_. https://codereview.webrtc.org/1577233006/diff/200001/webrtc/p2p/base/p2ptransportchannel.cc ...
4 years, 11 months ago (2016-01-27 19:59:59 UTC) #21
guoweis_webrtc
PTAL. https://codereview.webrtc.org/1577233006/diff/200001/talk/app/webrtc/peerconnectioninterface.h File talk/app/webrtc/peerconnectioninterface.h (right): https://codereview.webrtc.org/1577233006/diff/200001/talk/app/webrtc/peerconnectioninterface.h#newcode262 talk/app/webrtc/peerconnectioninterface.h:262: bool ping_most_likely_candidate_pair_first; On 2016/01/27 19:59:58, pthatcher1 wrote: > ...
4 years, 9 months ago (2016-02-29 18:03:01 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577233006/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577233006/340001
4 years, 9 months ago (2016-03-01 06:30:46 UTC) #29
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-01 07:27:52 UTC) #31
pthatcher1
Mostly style, but I think we should not have FindNext mutate things. That's probably the ...
4 years, 9 months ago (2016-03-02 20:54:36 UTC) #32
guoweis_webrtc
On 2016/03/02 20:54:36, pthatcher1 wrote: > Mostly style, but I think we should not have ...
4 years, 9 months ago (2016-03-02 22:10:12 UTC) #33
guoweis_webrtc
https://codereview.webrtc.org/1577233006/diff/340001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1577233006/diff/340001/webrtc/p2p/base/p2ptransportchannel.cc#newcode252 webrtc/p2p/base/p2ptransportchannel.cc:252: false, On 2016/03/02 20:54:36, pthatcher1 wrote: > Can you ...
4 years, 9 months ago (2016-03-02 22:10:47 UTC) #34
pthatcher1
lgtm
4 years, 9 months ago (2016-03-02 22:45:53 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577233006/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577233006/360001
4 years, 9 months ago (2016-03-02 22:54:51 UTC) #37
commit-bot: I haz the power
Exceeded global retry quota
4 years, 9 months ago (2016-03-02 22:57:15 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577233006/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577233006/380001
4 years, 9 months ago (2016-03-02 23:12:57 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: linux_ubsan on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_ubsan/builds/175) linux_ubsan_vptr on tryserver.webrtc (JOB_FAILED, ...
4 years, 9 months ago (2016-03-02 23:20:29 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577233006/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577233006/420001
4 years, 9 months ago (2016-03-03 00:31:13 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577233006/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577233006/420001
4 years, 9 months ago (2016-03-03 00:41:23 UTC) #51
commit-bot: I haz the power
Committed patchset #14 (id:420001)
4 years, 9 months ago (2016-03-03 02:02:44 UTC) #53
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 02:03:07 UTC) #55
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/36f0137fd51e3a557087c3332dd47dcd5956ae4a
Cr-Commit-Position: refs/heads/master@{#11850}

Powered by Google App Engine
This is Rietveld 408576698