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

Unified Diff: content/browser/renderer_host/p2p/socket_host_udp.cc

Issue 365903007: Handle unresolved remote hostname for TCP sockets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
Index: content/browser/renderer_host/p2p/socket_host_udp.cc
diff --git a/content/browser/renderer_host/p2p/socket_host_udp.cc b/content/browser/renderer_host/p2p/socket_host_udp.cc
index 5dad882629f1577fc7ac90294034cb51e295bea8..2af80aa5ff857915feb3892ae5c69f359d3c7647 100644
--- a/content/browser/renderer_host/p2p/socket_host_udp.cc
+++ b/content/browser/renderer_host/p2p/socket_host_udp.cc
@@ -113,7 +113,9 @@ bool P2PSocketHostUdp::Init(const net::IPEndPoint& local_address,
state_ = STATE_OPEN;
- message_sender_->Send(new P2PMsg_OnSocketCreated(id_, address));
+ // NOTE: Remote address will be same as what renderer provided.
+ message_sender_->Send(new P2PMsg_OnSocketCreated(
+ id_, address, remote_address.ip_address));
recv_buffer_ = new net::IOBuffer(kReadBufferSize);
DoRead();

Powered by Google App Engine
This is Rietveld 408576698