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

Unified Diff: net/http/http_network_layer.cc

Issue 9516009: SPDY - disable spdy/2.1 (flow control) by default (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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_network_layer.cc
===================================================================
--- net/http/http_network_layer.cc (revision 124201)
+++ net/http/http_network_layer.cc (working copy)
@@ -101,7 +101,6 @@
std::vector<std::string> next_protos;
next_protos.push_back("http/1.1");
next_protos.push_back("spdy/2");
- next_protos.push_back("spdy/2.1");
HttpStreamFactory::set_next_protos(next_protos);
} else if (option == kEnableNpnHttpOnly) {
// Avoid alternate protocol in this case. Otherwise, browser will try SSL
@@ -130,8 +129,9 @@
} else if (option == kForceAltProtocols) {
PortAlternateProtocolPair pair;
pair.port = 443;
- pair.protocol = NPN_SPDY_21;
+ pair.protocol = NPN_SPDY_2;
HttpServerPropertiesImpl::ForceAlternateProtocol(pair);
+ HttpStreamFactory::set_highest_supported_alternate_protocol(NPN_SPDY_2);
} else if (option == kSingleDomain) {
SpdySessionPool::ForceSingleDomain();
LOG(ERROR) << "FORCING SINGLE DOMAIN";
« no previous file with comments | « no previous file | net/http/http_network_transaction_unittest.cc » ('j') | net/http/http_network_transaction_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698