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

Issue 2053043003: Update ICE role on all ports, not just ones used for new connections. (Closed)

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

Description

Update ICE role on all ports, not just ones used for new connections. Previously, if the ICE role changed, SetIceRole was only called on the ports from the most recent ICE generation. However, STUN pings may still be sent and received by older generation ports, so they should receive an updated role as well. This was previously triggering an ASSERT, because a P2PTransportChannel expects the ICE role of each of its ports to match its own role. Committed: https://crrev.com/370544594e18deb7f560f961295c8cf3f0a679f1 Committed: https://crrev.com/dfc4244d9efb1f2f340a5c88fa55f3a03e1e372e Cr-Original-Commit-Position: refs/heads/master@{#13226} Cr-Commit-Position: refs/heads/master@{#13247}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Renaming variables, adding tests. #

Total comments: 1

Patch Set 3 : Adding comment Peter requested. #

Patch Set 4 : Fixing issue with call to `erase`. Adding test for port destruction. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -14 lines) Patch
M webrtc/p2p/base/fakeportallocator.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.h View 1 1 chunk +8 lines, -1 line 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.cc View 1 2 3 5 chunks +19 lines, -13 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 1 2 3 2 chunks +80 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
Taylor Brandstetter
PTAL Honghai. This fixes the ASSERT that Vlad found. Also, I realize that "active_ports_"/"inactive_ports_" may ...
4 years, 6 months ago (2016-06-10 19:25:43 UTC) #2
honghaiz3
On 2016/06/10 19:25:43, Taylor Brandstetter wrote: > PTAL Honghai. This fixes the ASSERT that Vlad ...
4 years, 6 months ago (2016-06-11 01:21:17 UTC) #3
Taylor Brandstetter
On 2016/06/11 01:21:17, honghaiz3 wrote: > On 2016/06/10 19:25:43, Taylor Brandstetter wrote: > > PTAL ...
4 years, 6 months ago (2016-06-13 17:41:51 UTC) #4
honghaiz3
On 2016/06/13 17:41:51, Taylor Brandstetter wrote: > On 2016/06/11 01:21:17, honghaiz3 wrote: > > On ...
4 years, 6 months ago (2016-06-13 17:57:37 UTC) #5
Taylor Brandstetter
On 2016/06/13 17:57:37, honghaiz3 wrote: > On 2016/06/13 17:41:51, Taylor Brandstetter wrote: > > On ...
4 years, 6 months ago (2016-06-13 18:33:44 UTC) #6
pthatcher1
It does need tests. For tests, why not create a P2pTransportChannel, fire SignalNetworkInactive on one ...
4 years, 6 months ago (2016-06-15 22:13:21 UTC) #7
Taylor Brandstetter
Tests added. Both for the ICE restart case and the continual gathering network inactive case. ...
4 years, 6 months ago (2016-06-16 00:53:34 UTC) #8
pthatcher1
lgtm https://codereview.webrtc.org/2053043003/diff/20001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2053043003/diff/20001/webrtc/p2p/base/p2ptransportchannel.cc#newcode313 webrtc/p2p/base/p2ptransportchannel.cc:313: port->SetIceRole(ice_role); Maybe add a comment of why we ...
4 years, 6 months ago (2016-06-16 22:36:23 UTC) #9
honghaiz3
lgtm
4 years, 6 months ago (2016-06-16 23:09:15 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2053043003/40001
4 years, 6 months ago (2016-06-20 18:11:38 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-20 19:55:55 UTC) #14
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/370544594e18deb7f560f961295c8cf3f0a679f1 Cr-Commit-Position: refs/heads/master@{#13226}
4 years, 6 months ago (2016-06-20 19:56:07 UTC) #16
phoglund
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.webrtc.org/2078423004/ by phoglund@webrtc.org. ...
4 years, 6 months ago (2016-06-21 15:28:55 UTC) #17
Taylor Brandstetter
Please review again. There was a crash in OnPortDestroyed, which wasn't caught because somehow this ...
4 years, 6 months ago (2016-06-21 20:40:28 UTC) #19
pthatcher1
lgtm
4 years, 6 months ago (2016-06-21 20:44:51 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2053043003/60001
4 years, 6 months ago (2016-06-21 20:48:12 UTC) #23
honghaiz3
lgtm
4 years, 6 months ago (2016-06-21 20:51:56 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-21 21:19:52 UTC) #26
commit-bot: I haz the power
4 years, 6 months ago (2016-06-21 21:20:02 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/dfc4244d9efb1f2f340a5c88fa55f3a03e1e372e
Cr-Commit-Position: refs/heads/master@{#13247}

Powered by Google App Engine
This is Rietveld 408576698