]> git.kaiwu.me - nginx.git/commitdiff
QUIC: added error codes and messages from latest drafts.
authorVladimir Homutov <vl@nginx.com>
Mon, 5 Apr 2021 08:31:03 +0000 (11:31 +0300)
committerVladimir Homutov <vl@nginx.com>
Mon, 5 Apr 2021 08:31:03 +0000 (11:31 +0300)
The AEAD_LIMIT_REACHED was addeded in draft-31.
The NO_VIABLE_PATH was added in draft-33.

src/event/quic/ngx_event_quic_transport.c
src/event/quic/ngx_event_quic_transport.h

index 3fcc9fec92e4d55d167870c23a8d846539b95909..27dbf92af6c382302182cf7a3718095a7a022e5c 100644 (file)
@@ -157,6 +157,8 @@ static char *ngx_quic_errors[] = {
     "APPLICATION_ERROR",
     "CRYPTO_BUFFER_EXCEEDED",
     "KEY_UPDATE_ERROR",
+    "AEAD_LIMIT_REACHED",
+    "NO_VIABLE_PATH",
 };
 
 
index 163ef3779fe4e8e6fa6cf41e22266477e0311427..415bbc75cabbd1f4836504bb58dbe7e408552022 100644 (file)
 #define NGX_QUIC_ERR_APPLICATION_ERROR                   0x0C
 #define NGX_QUIC_ERR_CRYPTO_BUFFER_EXCEEDED              0x0D
 #define NGX_QUIC_ERR_KEY_UPDATE_ERROR                    0x0E
+#define NGX_QUIC_ERR_AEAD_LIMIT_REACHED                  0x0F
+#define NGX_QUIC_ERR_NO_VIABLE_PATH                      0x10
 
-#define NGX_QUIC_ERR_LAST                                0x0F
+#define NGX_QUIC_ERR_LAST                                0x11
 #define NGX_QUIC_ERR_CRYPTO_ERROR                       0x100
 
 #define NGX_QUIC_ERR_CRYPTO(e)  (NGX_QUIC_ERR_CRYPTO_ERROR + (e))