diff options
author | asanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-29 16:21:57 +0000 |
---|---|---|
committer | asanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-29 16:21:57 +0000 |
commit | 8e7177727ef18e2fdb0f2ad05e6c39da10265797 (patch) | |
tree | ef8960c18ef613cbec74f8346ecca168c1df8d10 /net/spdy/spdy_http_stream.cc | |
parent | d685a68049c3bacf00e108afe1da6a0807b2ab3c (diff) | |
download | chromium_src-8e7177727ef18e2fdb0f2ad05e6c39da10265797.zip chromium_src-8e7177727ef18e2fdb0f2ad05e6c39da10265797.tar.gz chromium_src-8e7177727ef18e2fdb0f2ad05e6c39da10265797.tar.bz2 |
Re-connect if Keep-Alive connection has been closed by the time we get around to reusing it.
BUG=none
TEST=net_unittests --gtest_filter=HttpNetworkTransactionTest.BasicAuthKeepAliveImpatientServer:*.BasicAuthKeepAliveNoBody:*.BasicAuthKeepAliveLargeBody && unit_tests --gtest_filter=*TransportClientSocketTest.IsConnected*
Review URL: http://codereview.chromium.org/6878055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83524 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_http_stream.cc')
-rw-r--r-- | net/spdy/spdy_http_stream.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/spdy/spdy_http_stream.cc b/net/spdy/spdy_http_stream.cc index 130a818..ac0c4ce 100644 --- a/net/spdy/spdy_http_stream.cc +++ b/net/spdy/spdy_http_stream.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -177,6 +177,11 @@ void SpdyHttpStream::SetConnectionReused() { // SPDY doesn't need an indicator here. } +bool SpdyHttpStream::IsConnectionReusable() const { + // SPDY streams aren't considered reusable. + return false; +} + void SpdyHttpStream::set_chunk_callback(ChunkCallback* callback) { if (request_body_stream_ != NULL) request_body_stream_->set_chunk_callback(callback); |