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); |
}; |