summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_session_pool.cc
diff options
context:
space:
mode:
authormbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-12 15:24:34 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-12 15:24:34 +0000
commit66992526f6c2c1fa706c0a38177119bbac25aa90 (patch)
tree9376d8ff2002cc054628005b699c1e41ed648057 /net/spdy/spdy_session_pool.cc
parenta01076ab38b57005e040da62d6dd37074c38a8cf (diff)
downloadchromium_src-66992526f6c2c1fa706c0a38177119bbac25aa90.zip
chromium_src-66992526f6c2c1fa706c0a38177119bbac25aa90.tar.gz
chromium_src-66992526f6c2c1fa706c0a38177119bbac25aa90.tar.bz2
The IP Aliases table was not being properly cleared when we manually close
all connections (which is done in the benchmark code, and also when changing networks) BUG=78811 TEST=SpdySessionPoolTest.IPPoolingCleanedOnClose Review URL: http://codereview.chromium.org/6820052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81252 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_session_pool.cc')
-rw-r--r--net/spdy/spdy_session_pool.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/spdy/spdy_session_pool.cc b/net/spdy/spdy_session_pool.cc
index daa6e01..9d14f4e 100644
--- a/net/spdy/spdy_session_pool.cc
+++ b/net/spdy/spdy_session_pool.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -392,9 +392,12 @@ void SpdySessionPool::CloseCurrentSessions() {
list->pop_front();
if (list->empty()) {
delete list;
+ RemoveAliases(old_map.begin()->first);
old_map.erase(old_map.begin()->first);
}
}
+ DCHECK(sessions_.empty());
+ DCHECK(aliases_.empty());
}
} // namespace net