From 66992526f6c2c1fa706c0a38177119bbac25aa90 Mon Sep 17 00:00:00 2001 From: "mbelshe@chromium.org" Date: Tue, 12 Apr 2011 15:24:34 +0000 Subject: 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 --- net/spdy/spdy_session_pool.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'net/spdy/spdy_session_pool.cc') 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 -- cgit v1.1