Mercurial > hg > nginx
diff src/event/quic/ngx_event_quic_connection.h @ 8950:fb811b6c76ee quic
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.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Fri, 24 Dec 2021 18:39:22 +0300 |
parents | fb41e37ddeb0 |
children | 1e2f4e9c8195 |
line wrap: on
line diff
--- 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;