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

Unified Diff: net/spdy/spdy_session_pool.cc

Issue 10491007: fixed issue 128383 - replace GetPeerAddress(AddressList* address) with GetPeerAddress(IPEndPoint* a… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix according to review Created 8 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
« no previous file with comments | « net/spdy/spdy_session.cc ('k') | net/spdy/spdy_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session_pool.cc
diff --git a/net/spdy/spdy_session_pool.cc b/net/spdy/spdy_session_pool.cc
index 7fc617ec802362979854c88c55d25147e569a946..22bf6ebb9a942ae6da1078bc5be2610eecd29faf 100644
--- a/net/spdy/spdy_session_pool.cc
+++ b/net/spdy/spdy_session_pool.cc
@@ -170,9 +170,9 @@ net::Error SpdySessionPool::GetSpdySessionFromSocket(
// proxy's address instead of the origin server, check to see if this is a
// direct connection.
if (g_enable_ip_pooling && host_port_proxy_pair.second.is_direct()) {
- AddressList addresses;
- if (connection->socket()->GetPeerAddress(&addresses) == OK)
- AddAlias(addresses.front(), host_port_proxy_pair);
+ IPEndPoint address;
+ if (connection->socket()->GetPeerAddress(&address) == OK)
+ AddAlias(address, host_port_proxy_pair);
}
// Now we can initialize the session with the SSL socket.
« no previous file with comments | « net/spdy/spdy_session.cc ('k') | net/spdy/spdy_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698