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

Issue 2261523004: Signal to remove remote candidates if ports are pruned. (Closed)

Created:
4 years, 4 months ago by honghaiz3
Modified:
4 years, 3 months ago
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

Signal to remove remote candidates if ports are pruned. Previously when a Turn port is pruned, if its candidate has been sent to the remote side, the remote side will keep the candidate and use that to create connections. We now signal the remote side to remove the candidates so that at least no new connection will be created using the removed candidates. Also updated the virtual socket server to better support our test cases. 1. Allow the virtual socket server to set transit delay for packets sent from a given IP address. 2. Ensure the ordered packet delivery for each socket (Previously the delivery order is enforced on the whole test case, so if a udp packet gets delayed based on its IP address, all TCP packets sent after the UDP packet will be delayed at least until the UDP packet is received). BUG=webrtc:6380 R=deadbeef@webrtc.org, pthatcher@webrtc.org, skvlad@webrtc.org Committed: https://crrev.com/c67e0f5753e9055e5fe76ae5eba76fe9efb3d769 Cr-Commit-Position: refs/heads/master@{#14297}

Patch Set 1 : . #

Total comments: 4

Patch Set 2 : inline set_pruned method #

Total comments: 36

Patch Set 3 : Address all comments #

Patch Set 4 : Revised tests to include different delay cases. #

Total comments: 2

Patch Set 5 : Minor changes #

Patch Set 6 : Make delay based on IP and make ordered delivery within each socket #

Patch Set 7 : Merge to head and fix a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -178 lines) Patch
M webrtc/base/virtualsocketserver.h View 1 2 3 4 5 5 chunks +15 lines, -4 lines 0 comments Download
M webrtc/base/virtualsocketserver.cc View 1 2 3 4 5 6 9 chunks +16 lines, -14 lines 0 comments Download
M webrtc/p2p/client/basicportallocator.h View 1 2 2 chunks +13 lines, -4 lines 0 comments Download
M webrtc/p2p/client/basicportallocator.cc View 1 2 3 4 chunks +50 lines, -28 lines 0 comments Download
M webrtc/p2p/client/basicportallocator_unittest.cc View 1 2 3 4 5 6 chunks +214 lines, -128 lines 0 comments Download

Messages

Total messages: 39 (22 generated)
skvlad
lgtm, but I'm not sure I completely understand the effect of this change. Let's discuss ...
4 years, 3 months ago (2016-09-14 02:35:11 UTC) #7
honghaiz3
https://codereview.webrtc.org/2261523004/diff/80001/webrtc/p2p/client/basicportallocator.h File webrtc/p2p/client/basicportallocator.h (right): https://codereview.webrtc.org/2261523004/diff/80001/webrtc/p2p/client/basicportallocator.h#newcode145 webrtc/p2p/client/basicportallocator.h:145: void set_pruned() { state_ = STATE_PRUNED; } On 2016/09/14 ...
4 years, 3 months ago (2016-09-14 16:50:31 UTC) #8
Taylor Brandstetter
https://codereview.webrtc.org/2261523004/diff/100001/webrtc/base/virtualsocketserver.h File webrtc/base/virtualsocketserver.h (right): https://codereview.webrtc.org/2261523004/diff/100001/webrtc/base/virtualsocketserver.h#newcode83 webrtc/base/virtualsocketserver.h:83: // If |delay_dist_ipv6_| is set, that will be used ...
4 years, 3 months ago (2016-09-15 00:43:17 UTC) #10
pthatcher1
https://codereview.webrtc.org/2261523004/diff/100001/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.webrtc.org/2261523004/diff/100001/webrtc/p2p/client/basicportallocator.cc#newcode317 webrtc/p2p/client/basicportallocator.cc:317: std::vector<PortData*> port_data_list = Why not "ports_to_prune"? https://codereview.webrtc.org/2261523004/diff/100001/webrtc/p2p/client/basicportallocator.cc#newcode318 webrtc/p2p/client/basicportallocator.cc:318: GetUnprunedPortsOnNetworks(failed_networks); ...
4 years, 3 months ago (2016-09-15 18:54:39 UTC) #12
honghaiz3
PTAL. https://codereview.webrtc.org/2261523004/diff/100001/webrtc/base/virtualsocketserver.h File webrtc/base/virtualsocketserver.h (right): https://codereview.webrtc.org/2261523004/diff/100001/webrtc/base/virtualsocketserver.h#newcode83 webrtc/base/virtualsocketserver.h:83: // If |delay_dist_ipv6_| is set, that will be ...
4 years, 3 months ago (2016-09-16 01:41:30 UTC) #14
Taylor Brandstetter
lgtm. I like what you did with the tests. https://codereview.webrtc.org/2261523004/diff/100001/webrtc/base/virtualsocketserver.h File webrtc/base/virtualsocketserver.h (right): https://codereview.webrtc.org/2261523004/diff/100001/webrtc/base/virtualsocketserver.h#newcode90 webrtc/base/virtualsocketserver.h:90: ...
4 years, 3 months ago (2016-09-16 17:21:17 UTC) #15
skvlad
lgtm. The tests are fantastic.
4 years, 3 months ago (2016-09-16 19:17:10 UTC) #16
pthatcher1
lgtm
4 years, 3 months ago (2016-09-16 21:59:03 UTC) #17
honghaiz3
https://codereview.webrtc.org/2261523004/diff/160001/webrtc/p2p/client/basicportallocator_unittest.cc File webrtc/p2p/client/basicportallocator_unittest.cc (right): https://codereview.webrtc.org/2261523004/diff/160001/webrtc/p2p/client/basicportallocator_unittest.cc#newcode520 webrtc/p2p/client/basicportallocator_unittest.cc:520: // |ready_ports|, On 2016/09/16 17:21:17, Taylor Brandstetter wrote: > ...
4 years, 3 months ago (2016-09-17 00:18:18 UTC) #18
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/2261523004/180001
4 years, 3 months ago (2016-09-17 00:18:53 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_dbg on ...
4 years, 3 months ago (2016-09-17 02:19:27 UTC) #23
honghaiz3
On 2016/09/17 02:19:27, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 3 months ago (2016-09-18 19:13:34 UTC) #26
Taylor Brandstetter
lgtm
4 years, 3 months ago (2016-09-19 17:51:00 UTC) #27
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/2261523004/200001
4 years, 3 months ago (2016-09-19 20:19:23 UTC) #31
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, 3 months ago (2016-09-19 22:19:48 UTC) #33
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/2261523004/220001
4 years, 3 months ago (2016-09-19 22:45:59 UTC) #36
honghaiz3
4 years, 3 months ago (2016-09-19 23:57:53 UTC) #38
Message was sent while issue was closed.
Committed patchset #7 (id:220001) manually as
c67e0f5753e9055e5fe76ae5eba76fe9efb3d769 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698