Index: content/browser/renderer_host/p2p/socket_host_tcp.cc |
diff --git a/content/browser/renderer_host/p2p/socket_host_tcp.cc b/content/browser/renderer_host/p2p/socket_host_tcp.cc |
index 99d29ef1edd184ff829e50c53ae74deda1909d6b..e6402544a08501806fcf3f7528c66aed30760ebb 100644 |
--- a/content/browser/renderer_host/p2p/socket_host_tcp.cc |
+++ b/content/browser/renderer_host/p2p/socket_host_tcp.cc |
@@ -142,6 +142,7 @@ void P2PSocketHostTcpBase::OnConnected(int result) { |
DCHECK_NE(result, net::ERR_IO_PENDING); |
if (result != net::OK) { |
+ LOG(WARNING) << "Error from connecting socket, result=" << result; |
OnError(); |
return; |
} |
@@ -206,6 +207,8 @@ void P2PSocketHostTcpBase::StartTls() { |
int status = socket_->Connect( |
base::Bind(&P2PSocketHostTcpBase::ProcessTlsSslConnectDone, |
base::Unretained(this))); |
+ |
+ LOG(1) << "StartTls socket connect status is " << status; |
if (status != net::ERR_IO_PENDING) { |
ProcessTlsSslConnectDone(status); |
} |
@@ -215,6 +218,7 @@ void P2PSocketHostTcpBase::ProcessTlsSslConnectDone(int status) { |
DCHECK_NE(status, net::ERR_IO_PENDING); |
DCHECK_EQ(state_, STATE_TLS_CONNECTING); |
if (status != net::OK) { |
+ LOG(WARNING) << "Error from connecting TLS socket, status=" << status; |
OnError(); |
return; |
} |
@@ -265,11 +269,13 @@ bool P2PSocketHostTcpBase::DoSendSocketCreateMsg() { |
OnError(); |
return false; |
} |
- VLOG(1) << "Remote address: " << remote_address.ToString(); |
- if (remote_address_.ip_address.address().empty() && |
- !remote_address.address().empty()) { |
- // Save |remote_address| if address is empty. |
- remote_address_.ip_address = remote_address; |
+ |
+ if (!remote_address.address().empty()) { |
+ VLOG(1) << "Remote address: " << remote_address.ToString(); |
+ if (remote_address_.ip_address.address().empty()) { |
+ // Save |remote_address| if address is empty. |
+ remote_address_.ip_address = remote_address; |
+ } |
} |
// If we are not doing TLS, we are ready to send data now. |