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

Unified Diff: remoting/protocol/libjingle_transport_factory.cc

Issue 1070233004: Fix intermittent connection failure in CRD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/jingle_session_unittest.cc ('k') | remoting/signaling/fake_signal_strategy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/libjingle_transport_factory.cc
diff --git a/remoting/protocol/libjingle_transport_factory.cc b/remoting/protocol/libjingle_transport_factory.cc
index fa497cb1d915f7634a55d94f168ff1efb61efe02..151d329f85827c3aeb27ba02df9c58344b0f1790 100644
--- a/remoting/protocol/libjingle_transport_factory.cc
+++ b/remoting/protocol/libjingle_transport_factory.cc
@@ -150,6 +150,8 @@ void LibjingleTransport::OnCanStart() {
DoStart();
while (!pending_candidates_.empty()) {
+ channel_->SetRemoteIceCredentials(pending_candidates_.front().username(),
+ pending_candidates_.front().password());
jiayl 2015/04/15 20:13:00 Do all candidates share the same username/password
Sergey Ulanov 2015/04/15 20:49:34 Credentials may change when the remote peer restar
channel_->OnCandidate(pending_candidates_.front());
pending_candidates_.pop_front();
}
@@ -228,6 +230,8 @@ void LibjingleTransport::AddRemoteCandidate(
return;
if (channel_) {
+ channel_->SetRemoteIceCredentials(candidate.username(),
+ candidate.password());
channel_->OnCandidate(candidate);
} else {
pending_candidates_.push_back(candidate);
« no previous file with comments | « remoting/protocol/jingle_session_unittest.cc ('k') | remoting/signaling/fake_signal_strategy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698