summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_session_pool.h
diff options
context:
space:
mode:
authorerikchen@google.com <erikchen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 16:50:53 +0000
committererikchen@google.com <erikchen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 16:50:53 +0000
commita01ea2207ead85fe7f2a3da9aea662050add3bfb (patch)
tree62ca3eaa0f61291c93c0fb89fec26f8610da2a97 /net/spdy/spdy_session_pool.h
parent05f5654439aa4e5a24e9c4b82225e4f16c352807 (diff)
downloadchromium_src-a01ea2207ead85fe7f2a3da9aea662050add3bfb.zip
chromium_src-a01ea2207ead85fe7f2a3da9aea662050add3bfb.tar.gz
chromium_src-a01ea2207ead85fe7f2a3da9aea662050add3bfb.tar.bz2
SpdySessionPool closes down sessions accurately now.
This may or may not fix 50265. Regardless, the previous behavior was incorrect. TEST=none BUG=none Review URL: http://codereview.chromium.org/3150023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56696 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_session_pool.h')
-rw-r--r--net/spdy/spdy_session_pool.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/net/spdy/spdy_session_pool.h b/net/spdy/spdy_session_pool.h
index 3bdd2b3..7efb400 100644
--- a/net/spdy/spdy_session_pool.h
+++ b/net/spdy/spdy_session_pool.h
@@ -73,8 +73,12 @@ class SpdySessionPool
// should be creating a new session.
bool HasSession(const HostPortProxyPair& host_port_proxy_pair) const;
- // Close all Spdy Sessions; used for debugging.
+ // Close all SpdySessions, including any new ones created in the process of
+ // closing the current ones.
void CloseAllSessions();
+ // Close only the currently existing SpdySessions. Let any new ones created
+ // continue to live.
+ void CloseCurrentSessions();
// Removes a SpdySession from the SpdySessionPool. This should only be called
// by SpdySession, because otherwise session->state_ is not set to CLOSED.
@@ -106,11 +110,6 @@ class SpdySessionPool
const SpdySessionList* GetSessionList(
const HostPortProxyPair& host_port_proxy_pair) const;
void RemoveSessionList(const HostPortProxyPair& host_port_proxy_pair);
- // Releases the SpdySessionPool reference to all sessions. Will result in all
- // idle sessions being deleted, and the active sessions from being reused, so
- // they will be deleted once all active streams belonging to that session go
- // away.
- void ClearSessions();
// This is our weak session pool - one session per domain.
SpdySessionsMap sessions_;