diff src/event/ngx_event_quic_transport.c @ 8424:c70446e3d771 quic

Treat receipt of NEW_TOKEN as connection error PROTOCOL_VIOLATION.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 05 Jun 2020 13:20:02 +0300
parents 90b02ff6b003
children 3e38dad3a163
line wrap: on
line diff
--- a/src/event/ngx_event_quic_transport.c
+++ b/src/event/ngx_event_quic_transport.c
@@ -1048,7 +1048,7 @@ ngx_quic_frame_allowed(ngx_quic_header_t
          /* RESET_STREAM */          0x3,
          /* STOP_SENDING */          0x3,
          /* CRYPTO */                0xD,
-         /* NEW_TOKEN */             0x1,
+         /* NEW_TOKEN */             0x0, /* only sent by server */
          /* STREAM0 */               0x3,
          /* STREAM1 */               0x3,
          /* STREAM2 */               0x3,