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

Unified Diff: net/tools/quic/quic_client_session.h

Issue 930983002: Adding an option to the quic client to not respect GOAWAYS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@deprecating_flag_quic_ack_notifier_informed_on_serialized_86177949
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/tools/quic/quic_client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client_session.h
diff --git a/net/tools/quic/quic_client_session.h b/net/tools/quic/quic_client_session.h
index 7532552ce65d69634d0416879bd98c4cb98859bd..3438a2334fc58bf53bda76b220bea9800ac9991f 100644
--- a/net/tools/quic/quic_client_session.h
+++ b/net/tools/quic/quic_client_session.h
@@ -48,6 +48,10 @@ class QuicClientSession : public QuicClientSessionBase {
// than the number of round-trips needed for the handshake.
int GetNumSentClientHellos() const;
+ void set_respect_goaway(bool respect_goaway) {
+ respect_goaway_ = respect_goaway;
+ }
+
protected:
// QuicSession methods:
QuicDataStream* CreateIncomingDataStream(QuicStreamId id) override;
@@ -55,6 +59,10 @@ class QuicClientSession : public QuicClientSessionBase {
private:
scoped_ptr<QuicCryptoClientStream> crypto_stream_;
+ // If this is set to false, the client will ignore server GOAWAYs and allow
+ // the creation of streams regardless of the high chance they will fail.
+ bool respect_goaway_;
+
DISALLOW_COPY_AND_ASSIGN(QuicClientSession);
};
« no previous file with comments | « no previous file | net/tools/quic/quic_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698