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

Unified Diff: net/quic/quic_rst_stream_error_list.h

Issue 17333003: Pretty-print QUIC CONNECTION_CLOSE and RST_STREAM error codes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wrap Created 7 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
« net/quic/quic_error_list.h ('K') | « net/quic/quic_protocol.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_rst_stream_error_list.h
diff --git a/net/quic/quic_rst_stream_error_list.h b/net/quic/quic_rst_stream_error_list.h
new file mode 100644
index 0000000000000000000000000000000000000000..9ac8d49525819aebadbc15098ef030adf3320842
--- /dev/null
+++ b/net/quic/quic_rst_stream_error_list.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file intentionally does not have header guards)
+// inside a macro to generate enum.
+
+// This file contains the list of QUIC RST_STREAM errors.
+
+QUIC_RST_STREAM_ERROR(STREAM_NO_ERROR)
eroman 2013/06/18 19:39:17 [optional] put this in the enum block
Ryan Hamilton 2013/06/19 16:59:11 Hm. I could definitely go either way. I'm inclin
+
+// There was some server error which halted stream processing.
+QUIC_RST_STREAM_ERROR(SERVER_ERROR_PROCESSING_STREAM)
+// We got two fin or reset offsets which did not match.
+QUIC_RST_STREAM_ERROR(MULTIPLE_TERMINATION_OFFSETS)
+// We got bad payload and can not respond to it at the protocol level.
+QUIC_RST_STREAM_ERROR(BAD_APPLICATION_PAYLOAD)
+// Stream closed due to connection error. No reset frame is sent when this
+// happens.
+QUIC_RST_STREAM_ERROR(STREAM_CONNECTION_ERROR)
+// GoAway frame sent. No more stream can be created.
+QUIC_RST_STREAM_ERROR(STREAM_PEER_GOING_AWAY)
+
+// No error. Used as bound while iterating.
+QUIC_RST_STREAM_ERROR(STREAM_LAST_ERROR)
eroman 2013/06/18 19:39:17 put this in the enum block.
Ryan Hamilton 2013/06/19 16:59:11 Done.
« net/quic/quic_error_list.h ('K') | « net/quic/quic_protocol.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698