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

Unified Diff: net/flip/flip_session.cc

Issue 415005: Linux: add next-protocol-negotiation to libssl. (Closed)
Patch Set: Addressing wtc's comments. Created 11 years, 1 month 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/flip/flip_session.cc
diff --git a/net/flip/flip_session.cc b/net/flip/flip_session.cc
index cede942eee80efc9a55cdde9d4901b4a850fa9be..d647c40a855f7c5beba910212bb0ccffc10bc7b2 100644
--- a/net/flip/flip_session.cc
+++ b/net/flip/flip_session.cc
@@ -158,6 +158,13 @@ FlipSession::FlipSession(const std::string& host, HttpNetworkSession* session)
flip_framer_.set_visitor(this);
session_->ssl_config_service()->GetSSLConfig(&ssl_config_);
+
+ // In the event that the server supports Next Protocol Negotiation, but
+ // doesn't support either of these protocols, we'll request the first
+ // protocol in the list. Because of that, HTTP is listed first because it's
+ // what we'll actually fallback to in the case that the server doesn't
+ // support SPDY.
+ ssl_config_.next_protos = "\007http1.1\004spdy";
willchan no longer on Chromium 2009/11/25 19:48:13 I don't think this code makes sense here. We will
agl 2009/11/30 20:24:53 It doesn't make sense here, it's only a placeholde
}
FlipSession::~FlipSession() {

Powered by Google App Engine
This is Rietveld 408576698