Index: net/spdy/spdy_session_pool.cc |
diff --git a/net/spdy/spdy_session_pool.cc b/net/spdy/spdy_session_pool.cc |
index edfbb57c980d34628685db37175e4650a10e62fd..82d842c96242868393ac816613dc8dce06ae3cd5 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). |
+ HostPortProxyPair key = it->first; |
eroman
2012/03/13 20:08:42
Please use |const HostPortProxyPair&| to avoid mak
Ryan Hamilton
2012/03/13 21:55:37
Done.
|
+ HostPortProxyPair pair = session->get()->host_port_proxy_pair(); |
eroman
2012/03/13 20:08:42
ditto to above.
Ryan Hamilton
2012/03/13 21:55:37
Done.
|
+ if (key.first.Equals(pair.first) && key.second == pair.second) |
+ list->Append(session->get()->GetInfoAsValue()); |
} |
} |
return list; |