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

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

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 | « net/tools/quic/quic_client_session.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client_session.cc
diff --git a/net/tools/quic/quic_client_session.cc b/net/tools/quic/quic_client_session.cc
index 815fdfd811fd0476d4324949fcce123016183e5b..92eec0415df0840d686f19f746973183d6f83dde 100644
--- a/net/tools/quic/quic_client_session.cc
+++ b/net/tools/quic/quic_client_session.cc
@@ -16,7 +16,7 @@ namespace tools {
QuicClientSession::QuicClientSession(const QuicConfig& config,
QuicConnection* connection)
- : QuicClientSessionBase(connection, config) {
+ : QuicClientSessionBase(connection, config), respect_goaway_(true) {
}
QuicClientSession::~QuicClientSession() {
@@ -46,7 +46,7 @@ QuicSpdyClientStream* QuicClientSession::CreateOutgoingDataStream() {
<< "Already " << GetNumOpenStreams() << " open.";
return nullptr;
}
- if (goaway_received()) {
+ if (goaway_received() && respect_goaway_) {
DVLOG(1) << "Failed to create a new outgoing stream. "
<< "Already received goaway.";
return nullptr;
« no previous file with comments | « net/tools/quic/quic_client_session.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698