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

Issue 1868353004: Update prflx candidates' generation when setting ICE credentials. (Closed)

Created:
4 years, 8 months ago by Taylor Brandstetter
Modified:
4 years, 8 months ago
Reviewers:
honghaiz3, pthatcher1
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 prflx candidates' generation when setting ICE credentials. If a STUN ping arrives before the remote description does, a prflx candidate will be created with an unknown generation. Once the remote description does arrive, the candidate's generation should be set so it can be sorted properly, and replaced by a non-prflx candidate once the candidate is signaled. BUG=webrtc:5752 R=honghaiz@webrtc.org, pthatcher@webrtc.org Committed: https://crrev.com/0a1bc53758862014343c8186ea7c270f0cdd57c6 Cr-Commit-Position: refs/heads/master@{#12433}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Re-enable the disabled test condition. #

Total comments: 5

Patch Set 3 : Adding "generation == 0" check and a TODO. #

Patch Set 4 : Only need to pass in the last ICE params and the generation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -35 lines) Patch
M webrtc/api/peerconnection_unittest.cc View 1 3 chunks +5 lines, -19 lines 0 comments Download
M webrtc/p2p/base/candidate.h View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.cc View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 4 chunks +22 lines, -7 lines 0 comments Download
M webrtc/p2p/base/port.h View 1 2 3 1 chunk +8 lines, -4 lines 0 comments Download
M webrtc/p2p/base/port.cc View 1 2 3 1 chunk +12 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Taylor Brandstetter
https://codereview.webrtc.org/1868353004/diff/1/webrtc/p2p/base/p2ptransportchannel_unittest.cc File webrtc/p2p/base/p2ptransportchannel_unittest.cc (right): https://codereview.webrtc.org/1868353004/diff/1/webrtc/p2p/base/p2ptransportchannel_unittest.cc#newcode1196 webrtc/p2p/base/p2ptransportchannel_unittest.cc:1196: ep2_ch1()->SetRemoteIceCredentials(kIceUfrag[0], kIcePwd[0]); I think "3" was just a typo ...
4 years, 8 months ago (2016-04-09 01:12:57 UTC) #2
pthatcher1
https://codereview.webrtc.org/1868353004/diff/20001/webrtc/p2p/base/port.cc File webrtc/p2p/base/port.cc (right): https://codereview.webrtc.org/1868353004/diff/20001/webrtc/p2p/base/port.cc#newcode1307 webrtc/p2p/base/port.cc:1307: remote_candidate_.set_password(params.pwd); Should we also set_generation() here?
4 years, 8 months ago (2016-04-12 18:47:39 UTC) #3
Taylor Brandstetter
Should the generation be changed to an rtc::Optional? Right now there's no way to differentiate ...
4 years, 8 months ago (2016-04-12 21:33:47 UTC) #4
pthatcher1
Making candidate.generation an rtc::optional sounds like a good idea. I think Honghai and I considered ...
4 years, 8 months ago (2016-04-12 22:39:53 UTC) #5
pthatcher1
lgtm
4 years, 8 months ago (2016-04-12 22:40:05 UTC) #6
honghaiz3
https://codereview.webrtc.org/1868353004/diff/20001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1868353004/diff/20001/webrtc/p2p/base/p2ptransportchannel.cc#newcode396 webrtc/p2p/base/p2ptransportchannel.cc:396: conn->MaybeSetRemoteIceCredentialsAndGeneration(remote_ice_parameters_); Why does this need to pass all ice ...
4 years, 8 months ago (2016-04-18 16:12:37 UTC) #7
Taylor Brandstetter
https://codereview.webrtc.org/1868353004/diff/20001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1868353004/diff/20001/webrtc/p2p/base/p2ptransportchannel.cc#newcode396 webrtc/p2p/base/p2ptransportchannel.cc:396: conn->MaybeSetRemoteIceCredentialsAndGeneration(remote_ice_parameters_); On 2016/04/18 16:12:37, honghaiz3 wrote: > Why does ...
4 years, 8 months ago (2016-04-18 23:30:01 UTC) #8
honghaiz3
lgtm
4 years, 8 months ago (2016-04-18 23:45:42 UTC) #9
Taylor Brandstetter
Committed patchset #4 (id:60001) manually as 0a1bc53758862014343c8186ea7c270f0cdd57c6 (presubmit successful).
4 years, 8 months ago (2016-04-20 01:03:42 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-04-20 01:03:43 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0a1bc53758862014343c8186ea7c270f0cdd57c6
Cr-Commit-Position: refs/heads/master@{#12433}

Powered by Google App Engine
This is Rietveld 408576698