Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Unified Diff: net/http/http_stream_factory_impl_job.cc

Issue 10581020: Prevent requests for http://host:port/ from being sent over an existing spdy session to https://hos… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix willchan's comments Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/http/http_stream_factory_impl_job.cc
diff --git a/net/http/http_stream_factory_impl_job.cc b/net/http/http_stream_factory_impl_job.cc
index 15cba9d2a5737b5be89ecc9e494098dd00cdb416..c037f5d6bdf82b4b433774c1f9ccca0e4c1db676 100644
--- a/net/http/http_stream_factory_impl_job.cc
+++ b/net/http/http_stream_factory_impl_job.cc
@@ -680,7 +680,9 @@ int HttpStreamFactoryImpl::Job::DoInitConnection() {
}
scoped_refptr<SpdySession> spdy_session =
session_->spdy_session_pool()->GetIfExists(spdy_session_key, net_log_);
- if (spdy_session) {
+ if (spdy_session && (request_info_.url.SchemeIs("https") ||
willchan no longer on Chromium 2012/06/29 17:19:45 Please add comments explaining what this condition
Ryan Hamilton 2012/06/29 17:37:34 Done.
+ proxy_info_.proxy_server().is_https() ||
+ force_spdy_always_)) {
// If we're preconnecting, but we already have a SpdySession, we don't
// actually need to preconnect any sockets, so we're done.
if (IsPreconnecting())

Powered by Google App Engine
This is Rietveld 408576698