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

Unified Diff: net/quic/chromium/quic_stream_factory.h

Issue 2322423002: Disable QUIC for 5 miuntes, subject to exponential backoff, when (Closed)
Patch Set: Rebase Created 4 years, 3 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/quic/chromium/quic_stream_factory.cc » ('j') | net/quic/chromium/quic_stream_factory.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_stream_factory.h
diff --git a/net/quic/chromium/quic_stream_factory.h b/net/quic/chromium/quic_stream_factory.h
index ef0cf91442a622e6324a16c486ccc86a50062249..679f4abe7e8b9037ab3a844bf1ba600f55384324 100644
--- a/net/quic/chromium/quic_stream_factory.h
+++ b/net/quic/chromium/quic_stream_factory.h
@@ -463,6 +463,12 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
const BoundNetLog& bound_net_log,
scoped_refptr<StringIOBuffer> packet);
+ // Called to re-enable QUIC when QUIC has been disabled.
+ void OpenFactory();
+ // If QUIC has been working well after having been recently
+ // disabled, clear the |consecutive_disabled_count_|.
+ void MaybeClearConsecutiveDisabledCount();
+
bool require_confirmation_;
NetLog* net_log_;
HostResolver* host_resolver_;
@@ -549,6 +555,10 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
// streams.
bool disable_quic_on_timeout_with_open_streams_;
+ // Number of times in a row that QUIC has been disabled.
+ int consecutive_disabled_count_;
+ bool need_to_evaluate_consecutive_disabled_count_;
ianswett 2016/09/14 20:10:14 Also, maybe just evaluate_consecutive_disabled_cou
+
// Size of the UDP receive buffer.
int socket_receive_buffer_size_;
« no previous file with comments | « no previous file | net/quic/chromium/quic_stream_factory.cc » ('j') | net/quic/chromium/quic_stream_factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698