Chromium Code Reviews| Index: net/spdy/spdy_session_pool.cc |
| diff --git a/net/spdy/spdy_session_pool.cc b/net/spdy/spdy_session_pool.cc |
| index 72beec465db4a1e2e110f2e34d98423375a10d0c..9fe32d4ef751b53482a3542a5b8d07eda70732ef 100644 |
| --- a/net/spdy/spdy_session_pool.cc |
| +++ b/net/spdy/spdy_session_pool.cc |
| @@ -278,7 +278,15 @@ base::Value* SpdySessionPool::SpdySessionPoolInfoToValue() const { |
| } |
| void SpdySessionPool::OnIPAddressChanged() { |
| - CloseCurrentSessions(ERR_NETWORK_CHANGED); |
| + WeakSessionList current_sessions = GetCurrentSessions(); |
| + for (WeakSessionList::const_iterator it = current_sessions.begin(); |
| + it != current_sessions.end(); ++it) { |
| + if (!*it) |
| + continue; |
| + |
| + (*it)->Deprecate(ERR_NETWORK_CHANGED); |
|
Johnny
2014/01/23 16:14:31
Possible to call SpdySessionPool::MakeSessionUnava
|
| + DCHECK(!IsSessionAvailable(*it)); |
| + } |
| http_server_properties_->ClearAllSpdySettings(); |
| } |