Index: net/spdy/spdy_session_pool.cc |
diff --git a/net/spdy/spdy_session_pool.cc b/net/spdy/spdy_session_pool.cc |
index 4b86f4b91b75286690a3f54d8164d0908e7f1f7a..fbfc3c4932a890699bf37d11ba482d3c3e901ede 100644 |
--- a/net/spdy/spdy_session_pool.cc |
+++ b/net/spdy/spdy_session_pool.cc |
@@ -222,7 +222,12 @@ Value* SpdySessionPool::SpdySessionPoolInfoToValue() const { |
SpdySessionList* sessions = it->second; |
for (SpdySessionList::const_iterator session = sessions->begin(); |
session != sessions->end(); ++session) { |
- list->Append(session->get()->GetInfoAsValue()); |
+ // Only add the session if the key in the map matches the main |
+ // host_port_proxy_pair (not an alias). |
+ const HostPortProxyPair& key = it->first; |
+ const HostPortProxyPair& pair = session->get()->host_port_proxy_pair(); |
+ if (key.first.Equals(pair.first) && key.second == pair.second) |
+ list->Append(session->get()->GetInfoAsValue()); |
} |
} |
return list; |