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

Unified Diff: net/http/http_stream_factory_impl_job.cc

Issue 939083003: Bypass QUIC proxy on ERR_QUIC_HANDSHAKE_FAILED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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_stream_factory_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0e37a48e09226d0958a7401ced7b2f97b505a745..d6e299e71d9cbe2927c6929a78a4f2bb4009cba9 100644
--- a/net/http/http_stream_factory_impl_job.cc
+++ b/net/http/http_stream_factory_impl_job.cc
@@ -904,7 +904,8 @@ int HttpStreamFactoryImpl::Job::DoInitConnectionComplete(int result) {
}
if (proxy_info_.is_quic() && using_quic_ &&
- result == ERR_QUIC_PROTOCOL_ERROR) {
+ (result == ERR_QUIC_PROTOCOL_ERROR ||
+ result == ERR_QUIC_HANDSHAKE_FAILED)) {
using_quic_ = false;
return ReconsiderProxyAfterError(result);
}
@@ -1320,6 +1321,7 @@ int HttpStreamFactoryImpl::Job::ReconsiderProxyAfterError(int error) {
// This can happen when trying to talk SSL to a non-SSL server (Like a
// captive portal).
case ERR_QUIC_PROTOCOL_ERROR:
+ case ERR_QUIC_HANDSHAKE_FAILED:
case ERR_SSL_PROTOCOL_ERROR:
break;
case ERR_SOCKS_CONNECTION_HOST_UNREACHABLE:
« no previous file with comments | « no previous file | net/http/http_stream_factory_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698