Mercurial > hg > nginx-quic
comparison src/event/ngx_event_quic.h @ 8241: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 |
comparison
equal
deleted
inserted
replaced
8240:43f3574b3e6f | 8241:2dfc5ef29973 |
---|---|
58 #define NGX_QUIC_SERVER_CID_LEN NGX_QUIC_MAX_CID_LEN | 58 #define NGX_QUIC_SERVER_CID_LEN NGX_QUIC_MAX_CID_LEN |
59 | 59 |
60 #define NGX_QUIC_SR_TOKEN_LEN 16 | 60 #define NGX_QUIC_SR_TOKEN_LEN 16 |
61 | 61 |
62 #define NGX_QUIC_MAX_SERVER_IDS 8 | 62 #define NGX_QUIC_MAX_SERVER_IDS 8 |
63 | |
64 #define NGX_QUIC_BUFFER_SIZE 4096 | |
63 | 65 |
64 #define ngx_quic_get_connection(c) ((ngx_quic_connection_t *)(c)->udp) | 66 #define ngx_quic_get_connection(c) ((ngx_quic_connection_t *)(c)->udp) |
65 | 67 |
66 | 68 |
67 typedef struct { | 69 typedef struct { |
133 | 135 |
134 /********************************* DEBUG *************************************/ | 136 /********************************* DEBUG *************************************/ |
135 | 137 |
136 /* #define NGX_QUIC_DEBUG_PACKETS */ /* dump packet contents */ | 138 /* #define NGX_QUIC_DEBUG_PACKETS */ /* dump packet contents */ |
137 /* #define NGX_QUIC_DEBUG_FRAMES */ /* dump frames contents */ | 139 /* #define NGX_QUIC_DEBUG_FRAMES */ /* dump frames contents */ |
138 /* #define NGX_QUIC_DEBUG_FRAMES_ALLOC */ /* log frames alloc/reuse/free */ | 140 /* #define NGX_QUIC_DEBUG_ALLOC */ /* log frames and bufs alloc */ |
139 /* #define NGX_QUIC_DEBUG_CRYPTO */ | 141 /* #define NGX_QUIC_DEBUG_CRYPTO */ |
140 | 142 |
141 #endif /* _NGX_EVENT_QUIC_H_INCLUDED_ */ | 143 #endif /* _NGX_EVENT_QUIC_H_INCLUDED_ */ |