diff options
-rw-r--r-- | net/spdy/spdy_session.cc | 2 | ||||
-rw-r--r-- | net/spdy/spdy_session_unittest.cc | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc index 138deb9..54e80c9 100644 --- a/net/spdy/spdy_session.cc +++ b/net/spdy/spdy_session.cc @@ -229,8 +229,6 @@ SpdySession::~SpdySession() { connection_->socket()->Disconnect(); } - DCHECK(!session_->spdy_session_pool()->HasSession(host_port_pair())); - // Record per-session histograms here. UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdyStreamsPerSession", streams_initiated_count_, diff --git a/net/spdy/spdy_session_unittest.cc b/net/spdy/spdy_session_unittest.cc index ece870c..471a52f 100644 --- a/net/spdy/spdy_session_unittest.cc +++ b/net/spdy/spdy_session_unittest.cc @@ -131,6 +131,11 @@ TEST_F(SpdySessionTest, GoAway) { MessageLoop::current()->RunAllPending(); EXPECT_FALSE(spdy_session_pool->HasSession(test_host_port_pair)); + + scoped_refptr<SpdySession> session2 = + spdy_session_pool->Get(test_host_port_pair, http_session.get()); + + session = NULL; } } // namespace |