diff options
Diffstat (limited to 'net/spdy')
-rw-r--r-- | net/spdy/spdy_session_pool.cc | 4 | ||||
-rw-r--r-- | net/spdy/spdy_session_pool.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/net/spdy/spdy_session_pool.cc b/net/spdy/spdy_session_pool.cc index 831e09d..72beec4 100644 --- a/net/spdy/spdy_session_pool.cc +++ b/net/spdy/spdy_session_pool.cc @@ -287,7 +287,7 @@ void SpdySessionPool::OnSSLConfigChanged() { } void SpdySessionPool::OnCertAdded(const X509Certificate* cert) { - CloseCurrentSessions(ERR_NETWORK_CHANGED); + CloseCurrentSessions(ERR_CERT_DATABASE_CHANGED); } void SpdySessionPool::OnCACertChanged(const X509Certificate* cert) { @@ -295,7 +295,7 @@ void SpdySessionPool::OnCACertChanged(const X509Certificate* cert) { // reduced. CloseCurrentSessions now because OnCACertChanged does not // tell us this. // See comments in ClientSocketPoolManager::OnCACertChanged. - CloseCurrentSessions(ERR_NETWORK_CHANGED); + CloseCurrentSessions(ERR_CERT_DATABASE_CHANGED); } bool SpdySessionPool::IsSessionAvailable( diff --git a/net/spdy/spdy_session_pool.h b/net/spdy/spdy_session_pool.h index 91e27e6..e68d0c4 100644 --- a/net/spdy/spdy_session_pool.h +++ b/net/spdy/spdy_session_pool.h @@ -141,6 +141,9 @@ class NET_EXPORT SpdySessionPool virtual void OnSSLConfigChanged() OVERRIDE; // CertDatabase::Observer methods: + + // We perform the same flushing as described above when certificate database + // is changed. virtual void OnCertAdded(const X509Certificate* cert) OVERRIDE; virtual void OnCACertChanged(const X509Certificate* cert) OVERRIDE; |