diff options
author | asanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-05 16:38:46 +0000 |
---|---|---|
committer | asanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-05 16:38:46 +0000 |
commit | 2d0a4f95d721d5c85a184950a8c87a40bb32326d (patch) | |
tree | 6a4169bde70e18d4040c942dd6549466a5f53550 /net/http/http_stream.h | |
parent | dc1948711c3e8471ab563a280dc0486dbc384b2a (diff) | |
download | chromium_src-2d0a4f95d721d5c85a184950a8c87a40bb32326d.zip chromium_src-2d0a4f95d721d5c85a184950a8c87a40bb32326d.tar.gz chromium_src-2d0a4f95d721d5c85a184950a8c87a40bb32326d.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/6902165
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84257 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_stream.h')
-rw-r--r-- | net/http/http_stream.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/http/http_stream.h b/net/http/http_stream.h index e262038..fed64655 100644 --- a/net/http/http_stream.h +++ b/net/http/http_stream.h @@ -1,4 +1,4 @@ -// Copyright (c) 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. // @@ -116,6 +116,10 @@ class HttpStream { virtual bool IsConnectionReused() const = 0; virtual void SetConnectionReused() = 0; + // Checks whether the current state of the underlying connection + // allows it to be reused. + virtual bool IsConnectionReusable() const = 0; + // Get the SSLInfo associated with this stream's connection. This should // only be called for streams over SSL sockets, otherwise the behavior is // undefined. |