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

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
« no previous file with comments | « no previous file | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_layer.cc
===================================================================
--- net/http/http_network_layer.cc (revision 124201)
+++ net/http/http_network_layer.cc (working copy)
@@ -101,8 +101,7 @@
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);
+ HttpStreamFactory::SetNextProtos(next_protos);
} else if (option == kEnableNpnHttpOnly) {
// Avoid alternate protocol in this case. Otherwise, browser will try SSL
// and then fallback to http. This introduces extra load.
@@ -110,14 +109,14 @@
std::vector<std::string> next_protos;
next_protos.push_back("http/1.1");
next_protos.push_back("http1.1");
- HttpStreamFactory::set_next_protos(next_protos);
+ HttpStreamFactory::SetNextProtos(next_protos);
} else if (option == kEnableVersionOne) {
spdy::SpdyFramer::set_protocol_version(1);
std::vector<std::string> next_protos;
// This is a temporary hack to pretend we support version 1.
next_protos.push_back("http/1.1");
next_protos.push_back("spdy/1");
- HttpStreamFactory::set_next_protos(next_protos);
+ HttpStreamFactory::SetNextProtos(next_protos);
} else if (option == kDisableAltProtocols) {
use_alt_protocols = false;
HttpStreamFactory::set_use_alternate_protocols(false);
@@ -126,11 +125,11 @@
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);
+ HttpStreamFactory::SetNextProtos(next_protos);
} else if (option == kForceAltProtocols) {
PortAlternateProtocolPair pair;
pair.port = 443;
- pair.protocol = NPN_SPDY_21;
+ pair.protocol = NPN_SPDY_2;
HttpServerPropertiesImpl::ForceAlternateProtocol(pair);
} else if (option == kSingleDomain) {
SpdySessionPool::ForceSingleDomain();
« no previous file with comments | « no previous file | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698