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

Unified Diff: net/quic/quic_session.cc

Issue 1398403006: relnote: Create Quic version 28. The receiver refuses to create a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/quic/quic_protocol_test.cc ('k') | net/quic/quic_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_session.cc
diff --git a/net/quic/quic_session.cc b/net/quic/quic_session.cc
index 7875bb8640bcd91eace78579b21a7b557951c036..12d190395968bf5855a1d1a5b7a15b027baad4ad 100644
--- a/net/quic/quic_session.cc
+++ b/net/quic/quic_session.cc
@@ -679,7 +679,12 @@ ReliableQuicStream* QuicSession::GetIncomingDynamicStream(
// Check if the new number of open streams would cause the number of
// open streams to exceed the limit.
if (GetNumOpenStreams() >= get_max_open_streams()) {
- CloseConnection(QUIC_TOO_MANY_OPEN_STREAMS);
+ if (connection()->version() <= QUIC_VERSION_27) {
+ CloseConnection(QUIC_TOO_MANY_OPEN_STREAMS);
+ } else {
+ // Refuse to open the stream.
+ SendRstStream(stream_id, QUIC_REFUSED_STREAM, 0);
+ }
return nullptr;
}
}
« no previous file with comments | « net/quic/quic_protocol_test.cc ('k') | net/quic/quic_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698