From 46e1edc4121dda51143becfffbc46674c770def2 Mon Sep 17 00:00:00 2001 From: "willchan@chromium.org" Date: Sun, 6 Mar 2011 16:45:29 +0000 Subject: Don't block on stream requests on Alternate-Protocol. Basically, after we get an HTTP header giving an Alternate-Protocol, we'll end up in a state where we're probably going to issue more HTTP requests. We have the already warm single HTTP connection. We probably don't have a SPDY session open. Previously, once we notice Alternate-Protocol, we'd block on trying to set up the new SPDY session, even though we still have the HTTP connection. Change this so we keep using HTTP until the SPDY session on the Alternate-Protocol becomes available, then we switch over to it. BUG=69688,75000 TEST=Browse to belshe.com. Examine net-internals to make sure it works. Test over a variety of connections (direct / various proxy types). Review URL: http://codereview.chromium.org/6610034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77075 0039d316-1c4b-4281-b951-d872f2087c98 --- net/http/http_stream.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'net/http/http_stream.h') diff --git a/net/http/http_stream.h b/net/http/http_stream.h index 16f84cc..e262038 100644 --- a/net/http/http_stream.h +++ b/net/http/http_stream.h @@ -126,6 +126,10 @@ class HttpStream { // behavior is undefined. virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) = 0; + // HACK(willchan): Really, we should move the HttpResponseDrainer logic into + // the HttpStream implementation. This is just a quick hack. + virtual bool IsSpdyHttpStream() const = 0; + private: DISALLOW_COPY_AND_ASSIGN(HttpStream); }; -- cgit v1.1