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

Issue 2124283003: Fixing inconsistency with behavior of `ClearGettingPorts`. (Closed)

Created:
4 years, 5 months ago by Taylor Brandstetter
Modified:
4 years, 4 months ago
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

Fixing inconsistency with behavior of `ClearGettingPorts`. I found that, depending on when it's called, ClearGettingPorts may or may not signal CandidatesAllocationDone, and may or may not continue to gather more ports/candidates. I'm fixing this inconsistency by having it always signal CandidatesAllocationDone (if needed), and always stop gathering until the next network change event. This makes it equivalent to StopGettingPorts, except that it allows gathering to be restarted if a network change occurs. I also found that P2PTransportChannel was signaling "gathering complete" even when continual gathering was enabled. This wasn't caught by the unit tests due to the inconsistency of ClearGettingPorts as described above. Committed: https://crrev.com/b60a8198f1bca0f843743837e295f780c721f712 Cr-Commit-Position: refs/heads/master@{#13908}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Merging with master. #

Patch Set 3 : Fixing test that tried to enable continual gathering in the middle of a session. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -54 lines) Patch
M webrtc/api/webrtcsession_unittest.cc View 1 2 3 chunks +6 lines, -5 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.cc View 1 2 chunks +15 lines, -3 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 1 15 chunks +39 lines, -39 lines 0 comments Download
M webrtc/p2p/base/portallocator.h View 1 1 chunk +12 lines, -4 lines 0 comments Download
M webrtc/p2p/client/basicportallocator.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M webrtc/p2p/client/basicportallocator_unittest.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
Taylor Brandstetter
PTAL Peter & Honghai. https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc#newcode312 webrtc/p2p/base/p2ptransportchannel.cc:312: if (!allocator_sessions_.empty()) { This class ...
4 years, 5 months ago (2016-07-07 17:52:37 UTC) #2
honghaiz3
https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc#newcode312 webrtc/p2p/base/p2ptransportchannel.cc:312: if (!allocator_sessions_.empty()) { On 2016/07/07 17:52:37, Taylor Brandstetter wrote: ...
4 years, 5 months ago (2016-07-21 04:10:59 UTC) #3
Taylor_Brandstetter
https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc#newcode312 webrtc/p2p/base/p2ptransportchannel.cc:312: if (!allocator_sessions_.empty()) { On 2016/07/21 04:10:59, honghaiz3 wrote: > ...
4 years, 5 months ago (2016-07-21 16:41:02 UTC) #5
honghaiz3
https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc#newcode312 webrtc/p2p/base/p2ptransportchannel.cc:312: if (!allocator_sessions_.empty()) { On 2016/07/21 16:41:01, Taylor_Brandstetter wrote: > ...
4 years, 5 months ago (2016-07-21 17:37:25 UTC) #6
honghaiz3
4 years, 5 months ago (2016-07-21 17:37:30 UTC) #7
Taylor Brandstetter
https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc#newcode312 webrtc/p2p/base/p2ptransportchannel.cc:312: if (!allocator_sessions_.empty()) { On 2016/07/21 17:37:25, honghaiz3 wrote: > ...
4 years, 5 months ago (2016-07-21 18:38:38 UTC) #8
honghaiz3
lgtm. https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc#newcode312 webrtc/p2p/base/p2ptransportchannel.cc:312: if (!allocator_sessions_.empty()) { On 2016/07/21 18:38:38, Taylor Brandstetter ...
4 years, 5 months ago (2016-07-21 21:22:05 UTC) #9
pthatcher1
https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc#newcode312 webrtc/p2p/base/p2ptransportchannel.cc:312: if (!allocator_sessions_.empty()) { On 2016/07/21 16:41:01, Taylor_Brandstetter wrote: > ...
4 years, 5 months ago (2016-07-22 18:11:22 UTC) #10
Taylor Brandstetter
https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc#newcode312 webrtc/p2p/base/p2ptransportchannel.cc:312: if (!allocator_sessions_.empty()) { On 2016/07/22 18:11:22, pthatcher1 wrote: > ...
4 years, 5 months ago (2016-07-22 19:58:42 UTC) #11
pthatcher1
lgtm I won't hold this up any more. https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2124283003/diff/1/webrtc/p2p/base/p2ptransportchannel.cc#newcode312 webrtc/p2p/base/p2ptransportchannel.cc:312: if ...
4 years, 4 months ago (2016-08-23 00:55:39 UTC) #12
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/2124283003/20001
4 years, 4 months ago (2016-08-24 17:42:10 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_rel/builds/17459)
4 years, 4 months ago (2016-08-24 17:59:23 UTC) #17
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/2124283003/40001
4 years, 4 months ago (2016-08-24 18:17:21 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 4 months ago (2016-08-24 20:18:05 UTC) #22
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/2124283003/40001
4 years, 4 months ago (2016-08-24 22:05:12 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-24 22:15:04 UTC) #25
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 22:15:14 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b60a8198f1bca0f843743837e295f780c721f712
Cr-Commit-Position: refs/heads/master@{#13908}

Powered by Google App Engine
This is Rietveld 408576698