summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-01 01:11:15 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-01 01:11:15 +0000
commit5504659233d587e9d0ec458be3da5ee0085f4dff (patch)
treed842fb7465c09080834a28104e9c496f8838215a /net
parent0b2fa2b16961888c0936290b58435937de938b42 (diff)
downloadchromium_src-5504659233d587e9d0ec458be3da5ee0085f4dff.zip
chromium_src-5504659233d587e9d0ec458be3da5ee0085f4dff.tar.gz
chromium_src-5504659233d587e9d0ec458be3da5ee0085f4dff.tar.bz2
Update CloseIdleSockets to close out FLIP connections as
well as HTTP connections. This is used for benchmarking. BUG=none TEST=none Review URL: http://codereview.chromium.org/454009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33402 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/http/http_cache.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
index 7f4c614..ed532b4 100644
--- a/net/http/http_cache.cc
+++ b/net/http/http_cache.cc
@@ -20,6 +20,7 @@
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/disk_cache/disk_cache.h"
+#include "net/flip/flip_session_pool.h"
#include "net/http/http_cache_transaction.h"
#include "net/http/http_network_layer.h"
#include "net/http/http_network_session.h"
@@ -529,6 +530,8 @@ void HttpCache::CloseIdleConnections() {
HttpNetworkSession* session = network->GetSession();
if (session) {
session->tcp_socket_pool()->CloseIdleSockets();
+ if (session->flip_session_pool())
+ session->flip_session_pool()->CloseAllSessions();
}
}