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

Unified Diff: net/http/http_stream_factory_impl.cc

Issue 1025573002: QUIC - disable QUIC if packet loss rate is bad for a connection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for comments it Patch set 6 Created 5 years, 9 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.cc
diff --git a/net/http/http_stream_factory_impl.cc b/net/http/http_stream_factory_impl.cc
index f4c1ab290f9100596d662e944b07ac4ecb610fe9..021db3519a9e7ee31cebbab5640ffdef4a6218cd 100644
--- a/net/http/http_stream_factory_impl.cc
+++ b/net/http/http_stream_factory_impl.cc
@@ -232,6 +232,9 @@ AlternativeService HttpStreamFactoryImpl::GetAlternativeServiceRequestFor(
if (!session_->params().enable_quic)
return kNoAlternativeService;
+ if (session_->quic_stream_factory()->IsQuicDisabled(origin.port()))
+ return kNoAlternativeService;
+
// TODO(rch): Figure out how to make QUIC iteract with PAC
// scripts. By not re-writing the URL, we will query the PAC script
// for the proxy to use to reach the original URL via TCP. But

Powered by Google App Engine
This is Rietveld 408576698