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

Unified Diff: net/quic/chromium/quic_chromium_client_session.cc

Issue 2933773002: When a stream is created for a QUIC session to a server which has been (Closed)
Patch Set: Fix zhongyi's comments Created 3 years, 6 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_network_transaction_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_chromium_client_session.cc
diff --git a/net/quic/chromium/quic_chromium_client_session.cc b/net/quic/chromium/quic_chromium_client_session.cc
index ba9e2c2baa531633ee9cfcd8da6f4d0dd4975796..51a5068392d7237f4a0e77dbf07d34fe245eb678 100644
--- a/net/quic/chromium/quic_chromium_client_session.cc
+++ b/net/quic/chromium/quic_chromium_client_session.cc
@@ -728,6 +728,11 @@ int QuicChromiumClientSession::WaitForHandshakeConfirmation(
}
int QuicChromiumClientSession::TryCreateStream(StreamRequest* request) {
+ if (stream_factory_ && stream_factory_->IsQuicBroken(this)) {
+ DVLOG(1) << "QUIC broken.";
+ return ERR_QUIC_PROTOCOL_ERROR;
+ }
+
if (goaway_received()) {
DVLOG(1) << "Going away.";
return ERR_CONNECTION_CLOSED;
« no previous file with comments | « no previous file | net/quic/chromium/quic_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698