summaryrefslogtreecommitdiffstats
path: root/net/http/http_basic_stream.cc
diff options
context:
space:
mode:
authorasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-29 16:21:57 +0000
committerasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-29 16:21:57 +0000
commit8e7177727ef18e2fdb0f2ad05e6c39da10265797 (patch)
treeef8960c18ef613cbec74f8346ecca168c1df8d10 /net/http/http_basic_stream.cc
parentd685a68049c3bacf00e108afe1da6a0807b2ab3c (diff)
downloadchromium_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/http/http_basic_stream.cc')
-rw-r--r--net/http/http_basic_stream.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/http/http_basic_stream.cc b/net/http/http_basic_stream.cc
index ef4d777..6501a59 100644
--- a/net/http/http_basic_stream.cc
+++ b/net/http/http_basic_stream.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2009 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.
@@ -102,6 +102,10 @@ void HttpBasicStream::SetConnectionReused() {
parser_->SetConnectionReused();
}
+bool HttpBasicStream::IsConnectionReusable() const {
+ return parser_->IsConnectionReusable();
+}
+
void HttpBasicStream::GetSSLInfo(SSLInfo* ssl_info) {
parser_->GetSSLInfo(ssl_info);
}