diff src/event/ngx_event_quic.h @ 8657:2dfc5ef29973 quic

QUIC: introduced QUIC buffers. Buffers are used to hold frame data. They have a fixed size and are reused after being freed.
author Roman Arutyunyan <arut@nginx.com>
date Tue, 01 Dec 2020 19:11:01 +0000
parents dbad2d6d1898
children
line wrap: on
line diff
--- a/src/event/ngx_event_quic.h
+++ b/src/event/ngx_event_quic.h
@@ -61,6 +61,8 @@
 
 #define NGX_QUIC_MAX_SERVER_IDS              8
 
+#define NGX_QUIC_BUFFER_SIZE                 4096
+
 #define ngx_quic_get_connection(c)           ((ngx_quic_connection_t *)(c)->udp)
 
 
@@ -135,7 +137,7 @@ ngx_int_t ngx_quic_get_packet_dcid(ngx_l
 
 /* #define NGX_QUIC_DEBUG_PACKETS */      /* dump packet contents */
 /* #define NGX_QUIC_DEBUG_FRAMES */       /* dump frames contents */
-/* #define NGX_QUIC_DEBUG_FRAMES_ALLOC */ /* log frames alloc/reuse/free */
+/* #define NGX_QUIC_DEBUG_ALLOC */        /* log frames and bufs alloc */
 /* #define NGX_QUIC_DEBUG_CRYPTO */
 
 #endif /* _NGX_EVENT_QUIC_H_INCLUDED_ */