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

Issue 2099563004: Start ICE connectivity checks as soon as the first pair is pingable. (Closed)

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

Start ICE connectivity checks as soon as the first pair is pingable. Previously, we were starting a periodic timer when the local description was set. The first connection may be created at any time after this happens, so after creating the first connection, we need to wait until that timer next fires before sending a ping. Now we just start that timer (and send the first ping) immediately after the first connection becomes pingable. This CL also removes the "Connect" method. The only vestigal effect of this method was to start the periodic timer, which is now not needed since it happens automatically. R=honghaiz@webrtc.org, pthatcher@webrtc.org

Patch Set 1 #

Patch Set 2 : Updating unit test failures. We ping too fast for our own good. #

Total comments: 8

Patch Set 3 : Start pinging when we first have a connection AND ICE credentials. #

Total comments: 2

Patch Set 4 : Code style fixes, renaming some methods, calling MaybeStartPinging in a different place. #

Total comments: 4

Patch Set 5 : Removing debug log message, adding missing UpdateState. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -163 lines) Patch
M webrtc/p2p/base/dtlstransportchannel.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/p2p/base/dtlstransportchannel.cc View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M webrtc/p2p/base/faketransportcontroller.h View 1 2 3 4 5 chunks +3 lines, -10 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.h View 1 2 3 4 6 chunks +12 lines, -7 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.cc View 1 2 3 4 18 chunks +58 lines, -47 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 1 2 3 4 33 chunks +59 lines, -51 lines 0 comments Download
M webrtc/p2p/base/port.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/p2p/base/port.cc View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M webrtc/p2p/base/transport.h View 3 chunks +0 lines, -7 lines 0 comments Download
M webrtc/p2p/base/transport.cc View 3 chunks +1 line, -18 lines 0 comments Download
M webrtc/p2p/base/transport_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/p2p/base/transportchannelimpl.h View 2 chunks +1 line, -4 lines 0 comments Download
M webrtc/p2p/base/transportcontroller_unittest.cc View 3 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
Taylor Brandstetter
4 years, 6 months ago (2016-06-24 23:52:22 UTC) #2
pthatcher1
lgtm https://codereview.webrtc.org/2099563004/diff/20001/webrtc/p2p/base/p2ptransportchannel_unittest.cc File webrtc/p2p/base/p2ptransportchannel_unittest.cc (right): https://codereview.webrtc.org/2099563004/diff/20001/webrtc/p2p/base/p2ptransportchannel_unittest.cc#newcode507 webrtc/p2p/base/p2ptransportchannel_unittest.cc:507: // Who is going to fix this, and ...
4 years, 6 months ago (2016-06-25 00:02:36 UTC) #3
honghaiz3
https://codereview.webrtc.org/2099563004/diff/20001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2099563004/diff/20001/webrtc/p2p/base/p2ptransportchannel.cc#newcode159 webrtc/p2p/base/p2ptransportchannel.cc:159: thread()->Post(RTC_FROM_HERE, this, MSG_CHECK_AND_PING); Should we worry about that the ...
4 years, 5 months ago (2016-06-27 16:24:20 UTC) #4
pthatcher1
https://codereview.webrtc.org/2099563004/diff/20001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2099563004/diff/20001/webrtc/p2p/base/p2ptransportchannel.cc#newcode159 webrtc/p2p/base/p2ptransportchannel.cc:159: thread()->Post(RTC_FROM_HERE, this, MSG_CHECK_AND_PING); On 2016/06/27 16:24:20, honghaiz3 wrote: > ...
4 years, 5 months ago (2016-06-27 18:32:20 UTC) #5
Taylor Brandstetter
https://codereview.webrtc.org/2099563004/diff/20001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2099563004/diff/20001/webrtc/p2p/base/p2ptransportchannel.cc#newcode159 webrtc/p2p/base/p2ptransportchannel.cc:159: thread()->Post(RTC_FROM_HERE, this, MSG_CHECK_AND_PING); On 2016/06/27 18:32:20, pthatcher1 wrote: > ...
4 years, 5 months ago (2016-06-27 22:19:34 UTC) #6
pthatcher1
lgtm Nice unit test and fix. https://codereview.webrtc.org/2099563004/diff/40001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2099563004/diff/40001/webrtc/p2p/base/p2ptransportchannel.cc#newcode957 webrtc/p2p/base/p2ptransportchannel.cc:957: if (IsPingable(c, now)) ...
4 years, 5 months ago (2016-06-28 01:16:33 UTC) #7
honghaiz3
lgtm
4 years, 5 months ago (2016-06-28 01:58:41 UTC) #8
Taylor Brandstetter
Honghai, you may want to review again. I'm now calling MaybeStartPinging from SortConnections, which I ...
4 years, 5 months ago (2016-06-28 02:01:42 UTC) #9
Taylor Brandstetter
Friendly reminder that I'm waiting for another review, since I did some refactoring.
4 years, 5 months ago (2016-06-29 17:16:03 UTC) #10
pthatcher1
https://codereview.webrtc.org/2099563004/diff/60001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2099563004/diff/60001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1213 webrtc/p2p/base/p2ptransportchannel.cc:1213: // * A TCP connection became connected. Oh, wow, ...
4 years, 5 months ago (2016-06-29 17:45:44 UTC) #11
honghaiz3
lgtm
4 years, 5 months ago (2016-06-29 17:47:44 UTC) #12
Taylor Brandstetter
https://codereview.webrtc.org/2099563004/diff/60001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/2099563004/diff/60001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1213 webrtc/p2p/base/p2ptransportchannel.cc:1213: // * A TCP connection became connected. On 2016/06/29 ...
4 years, 5 months ago (2016-06-29 18:04:56 UTC) #13
pthatcher1
lgtm (Too bad there wasn't a unit test for this failed/connected state thing, though)
4 years, 5 months ago (2016-06-29 18:14:19 UTC) #14
honghaiz3
On 2016/06/29 18:04:56, Taylor Brandstetter wrote: > https://codereview.webrtc.org/2099563004/diff/60001/webrtc/p2p/base/p2ptransportchannel.cc > File webrtc/p2p/base/p2ptransportchannel.cc (right): > > https://codereview.webrtc.org/2099563004/diff/60001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1213 ...
4 years, 5 months ago (2016-06-29 18:19:32 UTC) #15
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/b825aee04a4a0a0ff302139185122f1490dcd542 Cr-Commit-Position: refs/heads/master@{#13331}
4 years, 5 months ago (2016-06-29 20:07:33 UTC) #20
Taylor Brandstetter
Committed patchset #5 (id:80001) manually as b825aee04a4a0a0ff302139185122f1490dcd542 (presubmit successful).
4 years, 5 months ago (2016-06-29 20:07:34 UTC) #21
Taylor Brandstetter
4 years, 5 months ago (2016-06-29 21:13:03 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.webrtc.org/2105413002/ by deadbeef@webrtc.org.

The reason for reverting is: Reverting because Chromoting depended on the
Connect method. Will reland with the Connect method as a no-op and a TODO to
remove..

Powered by Google App Engine
This is Rietveld 408576698