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

Issue 2143653005: Dampening connection switch. (Closed)

Created:
4 years, 5 months ago by honghaiz3
Modified:
4 years, 4 months ago
Reviewers:
skvlad2, pthatcher1
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

Dampening connection switch. If the currently selected connection becomes not receiving and if a backup connection becomes strong first, we will not switch the connection until X milliseconds is passed but the selected connection is still not receiving and the backup connection is still receiving. This will prevent the connection switching from happening too frequently. BUG= Committed: https://crrev.com/9ad0db51a679a5967b593e72431a10967b6182bb Cr-Commit-Position: refs/heads/master@{#13480}

Patch Set 1 : Add receiving_dampening_interval as a IceConfig #

Patch Set 2 : Add tests and fix an issue #

Total comments: 13

Patch Set 3 : Fix some comments #

Total comments: 19

Patch Set 4 : Address comments #

Total comments: 22

Patch Set 5 : Address comments #

Patch Set 6 : Minor formatting #

Patch Set 7 : . #

Total comments: 8

Patch Set 8 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+299 lines, -92 lines) Patch
M webrtc/p2p/base/p2ptransportchannel.h View 1 2 3 4 5 6 4 chunks +26 lines, -10 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.cc View 1 2 3 4 5 6 7 14 chunks +68 lines, -32 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 1 2 3 4 5 6 16 chunks +176 lines, -34 lines 0 comments Download
M webrtc/p2p/base/port.h View 1 2 3 4 5 6 3 chunks +6 lines, -1 line 0 comments Download
M webrtc/p2p/base/port.cc View 1 2 3 4 5 6 5 chunks +14 lines, -13 lines 0 comments Download
M webrtc/p2p/base/transport.h View 1 2 3 3 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (14 generated)
honghaiz3
You may want to take a look at the CL. I will add tests in ...
4 years, 5 months ago (2016-07-13 03:18:25 UTC) #4
honghaiz3
Please hold this for a while. I am making some fixes to the CL.
4 years, 5 months ago (2016-07-13 17:39:09 UTC) #7
honghaiz3
Add tests and fix an issue. PTAL now.
4 years, 5 months ago (2016-07-13 19:33:39 UTC) #8
honghaiz3
https://codereview.webrtc.org/2143653005/diff/100001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2143653005/diff/100001/webrtc/p2p/base/p2ptransportchannel.cc#newcode83 webrtc/p2p/base/p2ptransportchannel.cc:83: static const int RECEIVING_DAMPENING_INTERVAL = 500; // ms I ...
4 years, 5 months ago (2016-07-13 19:38:08 UTC) #9
pthatcher1
https://codereview.webrtc.org/2143653005/diff/100001/webrtc/p2p/base/p2ptransportchannel_unittest.cc File webrtc/p2p/base/p2ptransportchannel_unittest.cc (right): https://codereview.webrtc.org/2143653005/diff/100001/webrtc/p2p/base/p2ptransportchannel_unittest.cc#newcode701 webrtc/p2p/base/p2ptransportchannel_unittest.cc:701: int get_and_reset_selected_candidate_pair_switches() { Just call this reset_selected_candidate_pair_switches(). It's OK ...
4 years, 5 months ago (2016-07-13 21:17:23 UTC) #12
honghaiz3
PTAL. Thanks! https://codereview.webrtc.org/2143653005/diff/100001/webrtc/p2p/base/p2ptransportchannel_unittest.cc File webrtc/p2p/base/p2ptransportchannel_unittest.cc (right): https://codereview.webrtc.org/2143653005/diff/100001/webrtc/p2p/base/p2ptransportchannel_unittest.cc#newcode701 webrtc/p2p/base/p2ptransportchannel_unittest.cc:701: int get_and_reset_selected_candidate_pair_switches() { On 2016/07/13 21:17:22, pthatcher1 ...
4 years, 5 months ago (2016-07-14 04:54:21 UTC) #13
pthatcher1
https://codereview.webrtc.org/2143653005/diff/100001/webrtc/p2p/base/p2ptransportchannel_unittest.cc File webrtc/p2p/base/p2ptransportchannel_unittest.cc (right): https://codereview.webrtc.org/2143653005/diff/100001/webrtc/p2p/base/p2ptransportchannel_unittest.cc#newcode2049 webrtc/p2p/base/p2ptransportchannel_unittest.cc:2049: EXPECT_EQ(0, get_and_reset_selected_candidate_pair_switches()); On 2016/07/14 04:54:20, honghaiz3 wrote: > On ...
4 years, 5 months ago (2016-07-14 18:01:44 UTC) #16
honghaiz3
PTAL. https://codereview.webrtc.org/2143653005/diff/100001/webrtc/p2p/base/p2ptransportchannel_unittest.cc File webrtc/p2p/base/p2ptransportchannel_unittest.cc (right): https://codereview.webrtc.org/2143653005/diff/100001/webrtc/p2p/base/p2ptransportchannel_unittest.cc#newcode2049 webrtc/p2p/base/p2ptransportchannel_unittest.cc:2049: EXPECT_EQ(0, get_and_reset_selected_candidate_pair_switches()); On 2016/07/14 18:01:43, pthatcher1 wrote: > ...
4 years, 5 months ago (2016-07-14 23:15:01 UTC) #17
pthatcher1
lgtm Just some minor style things. https://codereview.webrtc.org/2143653005/diff/240001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2143653005/diff/240001/webrtc/p2p/base/p2ptransportchannel.cc#newcode201 webrtc/p2p/base/p2ptransportchannel.cc:201: rtc::TimeMillis() - (*config_.receiving_switching_delay)); ...
4 years, 5 months ago (2016-07-14 23:28:20 UTC) #19
honghaiz3
https://codereview.webrtc.org/2143653005/diff/240001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2143653005/diff/240001/webrtc/p2p/base/p2ptransportchannel.cc#newcode201 webrtc/p2p/base/p2ptransportchannel.cc:201: rtc::TimeMillis() - (*config_.receiving_switching_delay)); On 2016/07/14 23:28:20, pthatcher1 wrote: > ...
4 years, 5 months ago (2016-07-15 00:06:06 UTC) #20
honghaiz3
4 years, 5 months ago (2016-07-15 00:06:15 UTC) #21
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/2143653005/150007
4 years, 5 months ago (2016-07-15 00:06:51 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:150007)
4 years, 5 months ago (2016-07-15 02:30:33 UTC) #26
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-15 02:30:36 UTC) #27
commit-bot: I haz the power
4 years, 5 months ago (2016-07-15 02:30:39 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/9ad0db51a679a5967b593e72431a10967b6182bb
Cr-Commit-Position: refs/heads/master@{#13480}

Powered by Google App Engine
This is Rietveld 408576698