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

Unified Diff: net/quic/quic_protocol.h

Issue 1413143004: Add new version QUIC_VERSION_29 in which streams honor RST_STREAM + NO_ERROR. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/quic_protocol.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_protocol.h
diff --git a/net/quic/quic_protocol.h b/net/quic/quic_protocol.h
index aa008c4b8e7c9a102b54c7dcc8d614a92950235a..416628ca7c8c113d662783d43947c72c5755c38b 100644
--- a/net/quic/quic_protocol.h
+++ b/net/quic/quic_protocol.h
@@ -346,6 +346,7 @@ enum QuicVersion {
QUIC_VERSION_26 = 26, // In CHLO, send XLCT tag containing hash of leaf cert
QUIC_VERSION_27 = 27, // Sends a nonce in the SHLO.
QUIC_VERSION_28 = 28, // Receiver can refuse to create a requested stream.
+ QUIC_VERSION_29 = 29, // Server and client honor QUIC_STREAM_NO_ERROR.
};
// This vector contains QUIC versions which we currently support.
@@ -356,7 +357,8 @@ enum QuicVersion {
// IMPORTANT: if you are adding to this list, follow the instructions at
// http://sites/quic/adding-and-removing-versions
static const QuicVersion kSupportedQuicVersions[] = {
- QUIC_VERSION_28, QUIC_VERSION_27, QUIC_VERSION_26, QUIC_VERSION_25};
+ QUIC_VERSION_29, QUIC_VERSION_28, QUIC_VERSION_27, QUIC_VERSION_26,
+ QUIC_VERSION_25};
typedef std::vector<QuicVersion> QuicVersionVector;
@@ -418,6 +420,8 @@ GetStartOfEncryptedData(QuicConnectionIdLength connection_id_length,
QuicPacketNumberLength packet_number_length);
enum QuicRstStreamErrorCode {
+ // Complete response has been sent, sending a RST to ask the other endpoint
+ // to stop sending request data without discarding the response.
QUIC_STREAM_NO_ERROR = 0,
// There was some error which halted stream processing.
« no previous file with comments | « no previous file | net/quic/quic_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698