diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2021-12-24 18:39:22 +0300 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2021-12-24 18:39:22 +0300 |
| commit | cd278da5e76682bee2126354e0ad7bbb66db4aa8 (patch) | |
| tree | 031ec948c0d1a2234800a083db2af7cd6060d8a2 /src/event/quic/ngx_event_quic_connection.h | |
| parent | 703be8c8f6db385b76c0c8b394cc3b2220639616 (diff) | |
| download | nginx-cd278da5e76682bee2126354e0ad7bbb66db4aa8.tar.gz nginx-cd278da5e76682bee2126354e0ad7bbb66db4aa8.tar.bz2 | |
QUIC: refactored buffer allocation, spliting and freeing.
Previously, buffer lists was used to track used buffers. Now reference
counter is used instead. The new implementation is simpler and faster with
many buffer clones.
Diffstat (limited to 'src/event/quic/ngx_event_quic_connection.h')
| -rw-r--r-- | src/event/quic/ngx_event_quic_connection.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/event/quic/ngx_event_quic_connection.h b/src/event/quic/ngx_event_quic_connection.h index 73268ea0a..dfd29fce5 100644 --- a/src/event/quic/ngx_event_quic_connection.h +++ b/src/event/quic/ngx_event_quic_connection.h @@ -225,12 +225,13 @@ struct ngx_quic_connection_s { ngx_uint_t pto_count; ngx_queue_t free_frames; - ngx_chain_t *free_bufs; + ngx_buf_t *free_bufs; ngx_buf_t *free_shadow_bufs; ngx_uint_t nframes; #ifdef NGX_QUIC_DEBUG_ALLOC ngx_uint_t nbufs; + ngx_uint_t nshadowbufs; #endif ngx_quic_streams_t streams; |
