DescriptionStart 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. #
Messages
Total messages: 24 (7 generated)
|