diff src/event/quic/ngx_event_quic_connection.h @ 8883:404de224517e quic

QUIC: limited the total number of frames. Exceeding 10000 allocated frames is considered a flood.
author Roman Arutyunyan <arut@nginx.com>
date Wed, 13 Oct 2021 14:46:51 +0300
parents 6204120cf37f
children 1d7bf9778328
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_connection.h
+++ b/src/event/quic/ngx_event_quic_connection.h
@@ -228,8 +228,8 @@ struct ngx_quic_connection_s {
     ngx_chain_t                      *free_bufs;
     ngx_buf_t                        *free_shadow_bufs;
 
+    ngx_uint_t                        nframes;
 #ifdef NGX_QUIC_DEBUG_ALLOC
-    ngx_uint_t                        nframes;
     ngx_uint_t                        nbufs;
 #endif