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

Issue 2005573002: Move the ICE state transition ASSERTS to a lower level. (Closed)

Created:
4 years, 7 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

Move the ICE state transition ASSERTS to a lower level. They don't really belong in PeerConnection because the state at that level can change when a transport channel is removed. That makes almost any state transition possible. The asserts are now in P2PTransportChannel (the equivalent to IceTransport in the spec). Currently it has a reduced set of states, that don't even take into account writability, but I plan to change that soon. BUG=webrtc:4757 R=pthatcher@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/6aefc6307d3ab174dbc2356319a67197d391200a

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add an assert for the state going from "closed" to something else. #

Patch Set 3 : Fixing patch conflict. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -38 lines) Patch
M webrtc/api/webrtcsession.cc View 1 1 chunk +2 lines, -38 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.cc View 1 2 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
Taylor Brandstetter
4 years, 7 months ago (2016-05-23 19:55:53 UTC) #2
pthatcher1
https://codereview.webrtc.org/2005573002/diff/1/webrtc/api/webrtcsession.cc File webrtc/api/webrtcsession.cc (left): https://codereview.webrtc.org/2005573002/diff/1/webrtc/api/webrtcsession.cc#oldcode1506 webrtc/api/webrtcsession.cc:1506: break; With this move, don't we lose the check ...
4 years, 7 months ago (2016-05-25 17:32:47 UTC) #3
Taylor Brandstetter
https://codereview.webrtc.org/2005573002/diff/1/webrtc/api/webrtcsession.cc File webrtc/api/webrtcsession.cc (left): https://codereview.webrtc.org/2005573002/diff/1/webrtc/api/webrtcsession.cc#oldcode1506 webrtc/api/webrtcsession.cc:1506: break; On 2016/05/25 17:32:47, pthatcher1 wrote: > With this ...
4 years, 7 months ago (2016-05-25 20:54:09 UTC) #4
pthatcher1
lgtm
4 years, 7 months ago (2016-05-26 17:59:41 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2005573002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2005573002/20001
4 years, 7 months ago (2016-05-26 22:22:30 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_clang_dbg/builds/13396) android_compile_x86_dbg on tryserver.webrtc (JOB_FAILED, ...
4 years, 7 months ago (2016-05-26 22:23:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2005573002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2005573002/40001
4 years, 7 months ago (2016-05-26 22:42:17 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/6aefc6307d3ab174dbc2356319a67197d391200a Cr-Commit-Position: refs/heads/master@{#12937}
4 years, 7 months ago (2016-05-26 23:08:37 UTC) #15
Taylor Brandstetter
Committed patchset #3 (id:40001) manually as 6aefc6307d3ab174dbc2356319a67197d391200a (presubmit successful).
4 years, 7 months ago (2016-05-26 23:08:37 UTC) #16
honghaiz3
On 2016/05/26 23:08:37, Taylor Brandstetter wrote: > Committed patchset #3 (id:40001) manually as > 6aefc6307d3ab174dbc2356319a67197d391200a ...
4 years, 6 months ago (2016-05-27 17:49:00 UTC) #17
Taylor Brandstetter
4 years, 6 months ago (2016-05-27 19:36:20 UTC) #18
Message was sent while issue was closed.
On 2016/05/27 17:49:00, honghaiz3 wrote:
> On 2016/05/26 23:08:37, Taylor Brandstetter wrote:
> > Committed patchset #3 (id:40001) manually as
> > 6aefc6307d3ab174dbc2356319a67197d391200a (presubmit successful).
> 
> I do not understand this (sorry I have not looked this earlier). 
> Isn't the ICE state transition dictated by w3c?
> And I think what w3c described is the aggregate states, not the lower-level
> internal states.

I made some pull requests recently to change this. They're now defined primarily
at the IceTransport level, with specific rules for how multiple states are
combined into one.

Powered by Google App Engine
This is Rietveld 408576698